本文介绍了具有Asciidoctor的可重用标记片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Asciidoctor为我们的公司编写指南。在本指南中,我想定义可重用的标记片段,可以在这样的文档中使用:

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#

尽管内容被逐字复制到生成的文档中。有谁知道如何用Asciidoctor定义可重用标记片段?

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

推荐答案


  • 包含是重复使用内容的最简单方法

  • 宏是另一种解决方案,但这需要一些代码。

  • 我认为我对 也会回答您的问题。

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

    这篇关于具有Asciidoctor的可重用标记片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 16:29