diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-30 14:32:03 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-30 22:31:56 -0400 |
| commit | 36d0935c9a7521a87929d676a6b657fb033c44eb (patch) | |
| tree | acb1e27aa0a95691419e2b05f5623fbd4f1aac61 /src/sisudoc/outputs/io_out/text.d | |
| parent | unused function removed (diff) | |
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)
Diffstat (limited to 'src/sisudoc/outputs/io_out/text.d')
| -rw-r--r-- | src/sisudoc/outputs/io_out/text.d | 5 |
1 files changed, 3 insertions, 2 deletions
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); |
