diff options
Diffstat (limited to 'org/out_xmls.org')
| -rw-r--r-- | org/out_xmls.org | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org index 852fcf6..9ea8260 100644 --- a/org/out_xmls.org +++ b/org/out_xmls.org @@ -343,6 +343,18 @@ int _heading_element_level(O)(O obj, string _xml_type) { if (_lev < 1) { return 1; } return (_lev > 6) ? 6 : _lev; } +/+ ↓ the class a heading carries. The title (level A) shares <h1> with level B, + having no element of its own since bespoke <h0> is not recognized and no + longer used, so it is told apart by class: "heading title", which the + stylesheets size a step above h1, as h0 was. Shifting every level down one + instead would give the title alone h1, and would further compress the + limited html heading range (h1 - h6). ++/ +string _heading_class(O)(O obj) { + return (obj.metainfo.heading_lev_markup == 0) + ? obj.metainfo.is_a ~ " title" + : obj.metainfo.is_a; +} #+END_SRC **** anchor tags @@ -1208,7 +1220,7 @@ string heading(O,M)( ? "" : ((obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier), _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), obj.metainfo.identifier, tags, heading_lev_anchor_tag, @@ -1224,7 +1236,7 @@ string heading(O,M)( </div>┃", _horizontal_rule, _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), tags, heading_lev_anchor_tag, _txt, |
