aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_sqlite.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/out_sqlite.org')
-rw-r--r--org/out_sqlite.org12
1 files changed, 9 insertions, 3 deletions
diff --git a/org/out_sqlite.org b/org/out_sqlite.org
index 418b2d3..b5c1772 100644
--- a/org/out_sqlite.org
+++ b/org/out_sqlite.org
@@ -1042,9 +1042,13 @@ string inline_notes_scroll(M,O)(
const O obj,
string _txt,
) {
- if (obj.has.inline_notes_reg) {
+ /+ ↓ every note the text holds, of every series: numbered (1, 2 ...), special
+ (*, **), and the editor's (*1, +1 ...). Checks whether text contains any
+ notes, the pattern every other writer now uses.
+ +/
+ if (_txt.match(rgx.inline_notes_al_all_note)) {
string[] _endnotes;
- foreach(m; _txt.matchAll(rgx.inline_notes_al_regular_number_note)) {
+ foreach(m; _txt.matchAll(rgx.inline_notes_al_all_note)) {
_endnotes ~= "<p class=\"endnote\">"
~ "<sup>" ~ m.captures["num"] ~ ".</sup>"
~ m.captures["note"]
@@ -1052,7 +1056,7 @@ string inline_notes_scroll(M,O)(
}
_txt = replaceAll!(m =>
("&#160;" ~ "<sup>" ~ m["num"] ~ "</sup>"))
- (_txt, rgx.inline_notes_al_regular_number_note)
+ (_txt, rgx.inline_notes_al_all_note)
~ _endnotes.join("\n");
}
debug(markup_endnotes) {
@@ -1176,6 +1180,7 @@ string html_quote(M,O)(
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "quote");
string _txt = munge_html(doc_matters, obj);
+ _txt = inline_markup(doc_matters, obj, _txt);
string o = format(q"┃<p class="%s">
%s
</p>┃",
@@ -1246,6 +1251,7 @@ string html_verse(M,O)(
assert(obj.metainfo.is_of_type == "block");
assert(obj.metainfo.is_a == "verse");
string _txt = munge_html(doc_matters, obj);
+ _txt = inline_markup(doc_matters, obj, _txt);
string o = format(q"┃<p class="%s">%s</p>┃",
obj.metainfo.is_a,
_txt