Mar*_*ear 5 asciidoc asciidoctor
有一些AsciiDoc有一个像...的块
----
this is a test
with *some* formatted/tabbed text in it
blah
----
Run Code Online (Sandbox Code Playgroud)
...我希望文字显示为...
这是一个测验
带有一些格式化/标签的文本
等等
...其中“ some”一词为粗体。
在 AsciiDoc 中,双线----表示ListingBlocks ,根据有关分隔块的 AsciiDoc 文档,它仅保留文本的某些格式方面(行和空白格式)(除了使用之外,正如您在答案中指出的那样)。 [subs="quotes"]
在分隔块中包含粗体格式的其他方法包括“Admonition Block”、ExampleBlock、OpenBlock、QuoteBlock和SidebarBlock 选项。
示例块:
**Admonition Block:**
[NOTE]
====
here *is* my text
====
**Example Block:**
====
here *is* my text
====
**Open Block:**
--
here *is* my text
--
**Quote Block:**
[quote, quote author]
____
here *is* my text
____
**Sidebar Block:**
****
here *is* my text
****
Run Code Online (Sandbox Code Playgroud)
示例块输出:
这是我想出的。这篇文章很有帮助...
http://www.methods.co.nz/asciidoc/faq.html#_how_can_i_format_text_inside_a_listing_block
[subs="quotes"]
----
this is a test
with *some* formatted/tabbed text in it
blah
----
Run Code Online (Sandbox Code Playgroud)
除了向文本添加格式(在本例中为粗体)之外,这使我能够保留文本中的格式/空白。