是否有轻松定制的轻量级标记?(Are there any lightweight markups that are easily customized?)

编程入门 行业动态 更新时间:2024-10-09 03:19:45
是否有轻松定制的轻量级标记?(Are there any lightweight markups that are easily customized?)

我已经写了一些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

更多推荐

本文发布于:2023-07-27 08:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1287695.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标记   轻松   lightweight   customized   easily

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!