Resuable markup fragments with Asciidoctor

不打扰是莪最后的温柔 提交于 2019-12-11 04:34:22

问题


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?


回答1:


  • 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.



来源:https://stackoverflow.com/questions/38042386/resuable-markup-fragments-with-asciidoctor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!