From af9f8677ff80287a0c83319258261d2368e14294 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 28 Sep 2026 11:43:54 -0400 Subject: 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 /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) --- src/sisudoc/ocda/meta/rgx.d | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sisudoc/ocda/meta/rgx.d') 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 -- cgit v1.2.3