![简单标记语言和 TeX 的最新进展如何](https://linux22.com/image/343627/%E7%AE%80%E5%8D%95%E6%A0%87%E8%AE%B0%E8%AF%AD%E8%A8%80%E5%92%8C%20TeX%20%E7%9A%84%E6%9C%80%E6%96%B0%E8%BF%9B%E5%B1%95%E5%A6%82%E4%BD%95.png)
有许多简化的文本标记语言,包括 wikipedia 中使用的语言、stackoverflow 中使用的语言以及 github 中使用的语言。
我对所谓的 github 语言特别感兴趣,[markdown][1]
它的语法看起来就像我刚刚制作的这个备忘单一样简单:
# This is like \section
## This is like \subsection
### This is like \subsubsection
#### This is like \paragraph (say)
**bold** text is written like `*bold*` or `__bold__`
**italic** text is written like `*italic*` or `_italic_`
This are list:
- which can be bulleted
- or unbulleted, i.e., numbered
- or checklist.
To be numbered, write numbers, e.g., 1
1. first item
2. second item
1. third item
我特别喜欢他们针对简单表格简化的语法,如果社区不劝阻的话,我很快就会问一个相关的问题。
答案1
ConTeXt 有一个 Markdown 解析器。来自m-markdown.mkiv
This module deals with markdown which is a document encoding that
some \CONTEXT\ like much. It reminds me of the kind of minimal coding
we used before we ran into \TEX\ and were using a somewhat simple
rendering (pagination, etc) of documents. As I'm no user myself, it
is up to others to provide documentation and examples.
ConTeXt 中的事情不断变化,根据上述通知,Markdown 模块不是主要优先事项。因此,上面给出的示例排版不符合预期。然而,下面这个更简单的示例排版符合预期。如果您遇到任何问题,只需在 ConTeXt 邮件列表中询问[email protected]
。
将其另存为test.md
。
**bold** text is written like `**bold**` or `__bold__`
*italic* text is written like `*italic*` or `_italic_`
This are list:
- which can be bulleted
- or unbulleted, i.e., numbered
- or checklist.
To be numbered, write numbers, e.g., 1
1. first item
2. second item
1. third item
然后用 运行它context
。
$ context --extra=markdown test.md
输出将被保存到context-extra.pdf
。