2011-09-16 40 views
3

我正在寻找一种类似Markdown的语言的实现,它将允许我在我的文档中嵌入“条件逻辑”。Markdown或其他简单标记语言中的条件逻辑?

我想象中的文件看起来是这样的:

./process-markdown --platform=foo 

我的谷歌搜索还没有恢复:可以通过参数传递到处理脚本制作

This text should be included in all processed versions of the document 

[platform==foo] 
This is an example for platform Foo 

[platform==bar] 
This is an example for platform Bar 

然后不同版本的文档任何与此有关的东西,尽管我觉得像这样的东西必须存在于软件文档中。

回答