| A few Markdown documents I've converted to PDFs: * https://impacts.to/downloads/lowres/impacts.pdf * https://whitemagicsoftware.com/softcover/technical.pdf * https://whitemagicsoftware.com/softcover/jekyll-hyde.pdf Respectfully, keeping presentation logic and content completely separated while having precise control over layout can happen with Markdown, as the example documents demonstrate. The ConTeXt typesetting system makes keeping such separation possible. The deeper issue relates to the software's architecture, which, IMO, systems like Typst, Obsidian, and others fail to generalize broadly enough. Here's KeenWrite's architecture (the "Proposed" row): https://gitlab.com/DaveJarvis/KeenWrite/-/raw/main/docs/imag... Although only Markdown is currently implemented, it's possible to plug other text-based input formats to produce an XHTML document. The instructions for how to typeset XHTML documents are defined by a theme. You can think of a theme as an XML to TeX translation layer. From there, going from XML to TeX is straightforward (when using ConTeXt, at least), allowing full control over the final output format (be it PDF, ePub, and so forth). I am the author of KeenWrite. The following tutorial shows how its themes work: https://www.youtube.com/watch?v=3QpX70O5S30&list=PLB-WIt1cZY... |
These aren't Markdowns converted to PDFs. These are HTML websites rendered as PDF, where at some early point some text with basic formatting was fed in.
>keeping presentation logic and content completely separated while having precise control over layout
Does anyone really want that? I certainly wouldn't want that separation. I want to create some document and not a sophisticated template, so I am always willing to sacrifice generality over momentary needs, if I can't force the layout, then I need to waste time to implement some generality, which I don't need. Completely the wrong approach to document creation.
This looks like you really want to have a web framework, not a document creation system.