5 ms·
KeenWrite[1] is my text editor that takes a slightly different approach than MDX. Rather than include variable definitions within documents, variables are defin
by thangalin 5y ago
KeenWrite[1] is my text editor that takes a slightly different approach than MDX. Rather than include variable definitions within documents, variables are defined in an external file[2]. I find that when variables are embedded into documents, those variables often include controls for presentation logic. To me, any presentation logic meant to affect a plain text document's presentation does not belong in the document itself. Part 8 of my Typesetting Markdown series shows the power of separating content from presentation by leveraging pandoc's annotation syntax[3].
Annotated Markdown is sufficiently powerful to produce a wide variety of different styles. Here are a few such documents typeset using ConTeXt[5]:
* https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/images/fire-and-ice.png https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdow...
* https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/jekyll-hyde.pdf https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdow...
* https://impacts.to/downloads/lowres/impacts.pdf https://impacts.to/downloads/lowres/impacts.pdf
* https://github.com/DaveJarvis/keenwrite/blob/master/docs/screenshots.md https://github.com/DaveJarvis/keenwrite/blob/master/docs/scr...
What's bothersome is how some companies are setting de facto Markdown standards without considering the greater ecosystem. GitHub has done this by introducing the "``` mermaid" syntax, which creates some problems[6].
[1]: https://github.com/DaveJarvis/keenwrite https://github.com/DaveJarvis/keenwrite
[2]: https://www.youtube.com/watch?v=u_dFd6UhdV8&t=18s https://www.youtube.com/watch?v=u_dFd6UhdV8&t=18s (renamed afterwards)
[3]: https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/#annotations https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdow...
[4]: https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/jekyll-hyde.pdf https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdow...
[5]: https://wiki.contextgarden.net/Installation https://wiki.contextgarden.net/Installation
[6]: https://news.ycombinator.com/item?id=30337894 https://news.ycombinator.com/item?id=30337894
- tonetheman 5y agoWhat you have done is really interesting. You might need to do more smaller chunks of how to use it though. I watched part of the video and I understood the substitution but the next part just went over my head. Maybe it is like a double pointer. Anyway your editor and your idea is super interesting. Just needs some explanation. Maybe you have already done that somewhere?
- thangalin 5y agoThank you. See the following links for details: * https://github.com/DaveJarvis/keenwrite/tree/master/docs https://github.com/DaveJarvis/keenwrite/tree/master/docs * https://github.com/DaveJarvis/keenwrite/blob/master/docs/variables.md https://github.com/DaveJarvis/keenwrite/blob/master/docs/var... I visualize the interpolated variables as a tree with many branches due to their recursive relationship.