Have some AsciiDoc that has a block like...
----
this is a test
with *some* formatted/tabbed text in it
blah
----
...我希望文本显示为...
这是一个测试 其中包含一些格式化/制表符文本 blah
...其中单词“一些”是粗体。
Have some AsciiDoc that has a block like...
----
this is a test
with *some* formatted/tabbed text in it
blah
----
...我希望文本显示为...
这是一个测试 其中包含一些格式化/制表符文本 blah
...其中单词“一些”是粗体。
----
行表示ListingBlocks,它们仅保留文本的某些格式方面(行和空格格式),根据AsciiDoc关于定界块的文档说明(除了使用[subs="quotes"]
,正如您在回答中指出的那样)。示例块:
**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
****
示例区块输出:
[subs="quotes"]
----
this is a test
with *some* formatted/tabbed text in it
blah
----
这使我能够保留文本中的格式/空格,并将格式(在此为粗体)添加到文本中。
++++
<screen>hostname $ <userinput>date</userinput>
Sun Apr 1 12:34:56 GMT 1984</screen>
++++
screen
和userinput
的修正样式时,它才能起作用。
[subs="quotes"]
属性真是个不错的发现! - summea