From 36d0935c9a7521a87929d676a6b657fb033c44eb Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 30 Sep 2026 14:32:03 -0400 Subject: notes: editor's notes, ~[* ]~ & ~[+ ]~, as series The markup documents ~[* note ]~ and ~[+ note ]~ as editor's notes, each a separately numbered series, and a bare ~[ note ]~ which sisu put in the asterisk series. They are included as notes. Each series is numbered through the document, *1, *2 ... and +1, +2 ..., apart from the author's notes. (assisted by Claude-Code) --- src/sisudoc/outputs/io_out/text.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sisudoc/outputs/io_out/text.d') diff --git a/src/sisudoc/outputs/io_out/text.d b/src/sisudoc/outputs/io_out/text.d index 89e85d9..43c7705 100644 --- a/src/sisudoc/outputs/io_out/text.d +++ b/src/sisudoc/outputs/io_out/text.d @@ -110,13 +110,14 @@ template outputText() { string general_munge; _ocn = (obj.metainfo.ocn == 0 || doc_matters.opt.action.ocn_off) ? "" : "「" ~ obj.metainfo.ocn.to!string ~ "」" ~ newline; + /+ ↓ every note, numbered (1, 2 ...) or of a special series (*, *1, +1 ...) +/ if (_txt.matchFirst(rgx.inline_notes_al_gen)) { - foreach (m; _txt.matchAll(rgx.inline_notes_al_regular_number_note)) { + foreach (m; _txt.matchAll(rgx.inline_notes_al_all_note)) { _notes ~= newlines ~ m["num"] ~ ". " ~ special_characters_and_font_face!().general(m["note"].replaceAll(rgx.inline_link, ("$1"))); } } - _txt = _txt.replaceAll(rgx.inline_notes_al_regular_number_note, "[$1]"); + _txt = _txt.replaceAll(rgx.inline_notes_al_all_note, "[$1]"); _txt = (obj.metainfo.is_a == "code") ? special_characters_and_font_face!().code(_txt) : special_characters_and_font_face!().general(_txt); -- cgit v1.2.3