Is Asciidoc markup programmatically extendable (by existen implementation, like RST)?

StackOverflow https://stackoverflow.com/questions/22884394

  •  28-06-2023
  •  | 
  •  

reStructuredText allow you extend/rewrite writer for its markup. So you can add new type of embedded objects or introduce new sub-language by defined API.

Is this possible with Asciidoc (original Python implementation or Ruby asciidoctor)?

有帮助吗?

解决方案

Yes to both, though the ways to extend each are different. In the Python implementation there's a conf file you use to create additional regex matchers. In asciidoctor (ruby) there is a full extension system built into versions starting at 0.1.4 (though it was at preview level in 0.1.4). Visit http://asciidoctor.org/docs/user-manual/#extension-points for more information about extensions in asciidoctor. http://asciidoc.org/userguide.html#X7 for asciidoc.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top