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/outputs/io_out/rgx.d | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sisudoc/outputs/io_out/rgx.d') diff --git a/src/sisudoc/outputs/io_out/rgx.d b/src/sisudoc/outputs/io_out/rgx.d index bafd8b6..60e169b 100644 --- a/src/sisudoc/outputs/io_out/rgx.d +++ b/src/sisudoc/outputs/io_out/rgx.d @@ -85,6 +85,11 @@ static template spineRgxOut() { 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"); /+ quotation marks +/ static quotes_open_and_close = ctRegex!(`[“”]`, "mg"); /+ inline markup footnotes endnotes +/ -- cgit v1.2.3