\begin{conccurrent}{Hacker News Thread} I'm writing in an HN thread. \end{concurrent}
is not so different from the markdown source. All the benefits you mention are simply from using semantic markup.
\begin{conccurrent}{Hacker News Thread} I'm writing in an HN thread. \end{concurrent}
is not so different from the markdown source. All the benefits you mention are simply from using semantic markup.
XML, for all its human-unfriendliness, is very good for declarative document layout that you can later feed into some random process.
``` diagram-plantuml
@startmindmap
...
@endmindmap
```
See: https://kroki.io/examples.html#mind-mapThe SVG output is written to a local file. KeenWrite converts Markdown to XHTML (XML), which references the local file. ConTeXt then typesets the XML, importing the local vector graphics file and formats it according to the setups defined by the theme.
Kroki has other text-based formats for flow charts, Gantt charts, UML diagrams, packet diagrams, network diagrams, etc.
To be concrete, create a file named "example.md":
Mind Map:
``` diagram-plantuml
@startmindmap
skinparam monochrome true
+ OS
++ Ubuntu
+++ Linux Mint
+++ Kubuntu
+++ Lubuntu
+++ KDE Neon
++ LMDE
++ SolydXK
++ SteamOS
++ Raspbian
-- Windows 95
-- Windows 98
-- Windows NT
--- Windows 8
--- Windows 10
@endmindmap
```
Then run: ./keenwrite.sh -i example.md --theme-dir=themes/boschet -o output.pdf
That outputs a PDF file with the following vector graphic (on page 3):