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/hub.d | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/sisudoc/outputs/io_out/hub.d') diff --git a/src/sisudoc/outputs/io_out/hub.d b/src/sisudoc/outputs/io_out/hub.d index 1a0ed70..4b1f016 100644 --- a/src/sisudoc/outputs/io_out/hub.d +++ b/src/sisudoc/outputs/io_out/hub.d @@ -77,7 +77,7 @@ template outputHub() { mixin spinePo4aConfig; write(po4aConfig(doc.matters)); } - enum outTask { source_or_pod, sqlite, sqlite_multi, latex, typst, odt, epub, html_scroll, html_seg, html_stuff, text, skel } + enum outTask { source_or_pod, sqlite, sqlite_multi, latex, typst, markdown, odt, epub, html_scroll, html_seg, html_stuff, text, skel } void Scheduled(D)(int sched, D doc) { auto msg = Msg!()(doc.matters); if (sched == outTask.source_or_pod) { @@ -143,6 +143,12 @@ template outputHub() { } msg.vv("typst done"); } + if (sched == outTask.markdown) { + msg.v("markdown processing... "); + import sisudoc.outputs.io_out.markdown; + outputMarkdown!()(doc.abstraction, doc.matters); + msg.vv("markdown done"); + } if (sched == outTask.text) { msg.v("text processing... "); import sisudoc.outputs.io_out.text; -- cgit v1.2.3