我正在尋找一種類似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
然後不同版本的文檔任何與此有關的東西,儘管我覺得像這樣的東西必須存在於軟件文檔中。