我已经写了一些LaTeX,但现在我感觉很懒,我想在Markdown,reStructuredText或Textile中编写我的下一个更大的项目,以方便阅读。 不幸的是,我想拥有一些TeX可定制性,并编写一些自己的语法结构来满足我的语义需求。
我希望这种标记语言的一件事是,有现成的插件/过滤器来生成LaTeX和(X)HTML输出。
由于我的需求可能无法实现,我的问题是,由于许多新的解析器都是用Python编写的,有没有特别干净的Python实现,我可以轻松插入新的语法?
I've written some amounts of LaTeX but nowadays I'm feeling lazy and I would like to write my next bigger project in Markdown, reStructuredText or Textile for easy readability. Unfortunately, I'd like to have some of that TeX customizability and write some own syntax constructs to meet my semantic needs.
One thing I want for such a markup language is that there are existing plugins/filters to generate LaTeX and (X)HTML output.
Because my needs might not be fulfilled out of the box, my side question is that since many of the newer parsers are written in Python, is there any particularly clean Python implementation in which I would easily insert new syntax?
最满意答案
看着
http://sphinx.pocoo.org/
运用
重组文本
http://docutils.sourceforge.net/rst.html
Look at
http://sphinx.pocoo.org/
using
Restructured Text
http://docutils.sourceforge.net/rst.html
更多推荐
发布评论