4 ms·
My blog dives into Markdown, Pandoc, R, bash, and the ConTeXt typesetting engine. https://dave.autonoma.ca/blog/ https://dave.autonoma.ca/blog/ Part 8 (coming
by thangalin 7y ago
My blog dives into Markdown, Pandoc, R, bash, and the ConTeXt typesetting engine.
https://dave.autonoma.ca/blog/ https://dave.autonoma.ca/blog/
Part 8 (coming soon!) uses annotated Markdown to reproduce a famous poem (original is on the left):
https://i.imgur.com/idV1mTM.png https://i.imgur.com/idV1mTM.png
The text of the poem is written in Pandoc-flavoured Markdown:
::: poem
Some say the world will end in fire,
Some say in ice.
From what I’ve tasted of desire
I hold with those who favor fire.
But if it had to perish twice,
I think I know enough of hate
To say that for destruction ice
Is also great,
And would suffice.
:::
> Markdown is good for generating HTML and terrible for making PDFs.²
Yes, Pandoc is essential for transforming Markdown into beautiful PDF files. Tooting my own horn a little more, my illustrated photobook, Impacts, is written almost entirely in pure Markdown, with a few annotations for plots and spectra:
https://impacts.to/preview.html https://impacts.to/preview.html
Tangentially related, what would be amazing is a robust text editor that allows injection of interpolated string variables from various data sources and structured data formats. Here's an architecture diagram to clarify:
https://i.imgur.com/8IMpAkN.png https://i.imgur.com/8IMpAkN.png
My open-source editor, Scrivenvar (https://github.com/DaveJarvis/scrivenvar https://github.com/DaveJarvis/scrivenvar), implements that architecture to some extent.