diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-28 11:43:54 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-28 13:12:20 -0400 |
| commit | af9f8677ff80287a0c83319258261d2368e14294 (patch) | |
| tree | 2d6996ff4df1f4f32e33b44b2970b824284eb0b6 /src/sisudoc/outputs/io_out/hub.d | |
| parent | typst 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/outputs/io_out/hub.d')
| -rw-r--r-- | src/sisudoc/outputs/io_out/hub.d | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
