AsciiDoc在列表块内添加粗体文本 [英] AsciiDoc add bold text inside a listing block

查看:110
本文介绍了AsciiDoc在列表块内添加粗体文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些类似块的AsciiDoc ...

Have some AsciiDoc that has a block like...

----
  this is a test
    with *some* formatted/tabbed text in it
blah
----

...我希望文本显示为...

...and I would like the text to display like...

  this is a test
    with some formatted/tabbed text in it
blah

...其中 some一词为粗体。

...where the word "some" is bold.

推荐答案

这就是我想出的。这篇文章很有帮助...

Here is what I came up with. This post was helpful...

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

除了添加格式外,这还使我保留了文本中的格式/空格(加粗这种情况)。

This allowed me to retain the formatting/whitespace in the text in addition to adding the formatting (bold in this case) to the text.

这篇关于AsciiDoc在列表块内添加粗体文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆