Resuable markup fragments with Asciidoctor

2019-08-01 01:59发布

I am writing a guide in Asciidoctor for our company. In this guide I would like to define resuable markup fragments which I can use in the document like this one:

:MUST: [small]#Must#

Although the content is verbatim copied to the resulting document. Does anyone know how to define resuable markup snippets with Asciidoctor?

标签: asciidoctor
1条回答
时光不老,我们不散
2楼-- · 2019-08-01 02:47
  • Includes are the easiest way to reuse content
  • Macro is an other solution, but this requires some code.

I think that my answer to "how to define own asciidoc macro" also answer your question.

查看更多
登录 后发表回答