aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/ocda/meta
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-28 11:43:54 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-28 13:12:20 -0400
commitaf9f8677ff80287a0c83319258261d2368e14294 (patch)
tree2d6996ff4df1f4f32e33b44b2970b824284eb0b6 /src/sisudoc/ocda/meta
parenttypst output --typist & --pdf that makes the pdf (diff)
markdown output, --markdown (--md)
A plain-text output that keeps the object numbers, written as CommonMark with GFM pipe tables, one .md per document-language in <lang>/markdown/, (linked from the metadata page) with images into that shared directory itself, skipping any already there, so --markdown alone still gives a complete tree. provided as an alternative to --text rather than a replacement --markdown produces a document that renders, (both provide objext numbering survives both. Every object carries an anchor and a superscript number linking to itself, so a citation by object number is a link in any markdown renderer. --text may still be of value to read in a terminal A note is written where it is referenced, with a link back to the object it came from, rather than gathered into an endnotes section. (assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/ocda/meta')
-rw-r--r--src/sisudoc/ocda/meta/rgx.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sisudoc/ocda/meta/rgx.d b/src/sisudoc/ocda/meta/rgx.d
index f418582..249fd3d 100644
--- a/src/sisudoc/ocda/meta/rgx.d
+++ b/src/sisudoc/ocda/meta/rgx.d
@@ -230,6 +230,11 @@ static template spineRgxIn() {
carry their own copy of this in rgx_xhtml may be needed by other writers
+/
static line_break = ctRegex!(` [\\]{2}`, "m");
+ /+ ↓ the trailing backslash a book index entry ends its line with. The text
+ and odt writers build this one inline, as regex("\\s*\\\\"), each time they
+ need it
+ +/
+ static trailing_backslash = ctRegex!(`\s*\\`, "mg");
/+ inline markup footnotes endnotes +/
static inline_notes_al = ctRegex!(`【(?:[*+]\s+|\s*)(.+?)】`, "mg");
static inline_notes_al_special = ctRegex!(`【(?:[*+]\s+)(.+?)】`, "mg"); // TODO remove match when special footnotes are implemented