AsciiDoc adds bold text inside the listing block

There is an 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 appear as ...

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

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

+5
source share
3 answers

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 keep formatting / spaces in the text in addition to adding formatting (bold in this case) to the text.

+1
source

AsciiDoc ---- Blocks, ( ).), AsciiDoc ( [subs="quotes"], ).

" " , p >
, 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
****

:

Block output example

+3

, docbook, :

++++
<screen>hostname $ <userinput>date</userinput>
Sun Apr  1 12:34:56 GMT 1984</screen>
++++

, , screen userinput.

0
source

Source: https://habr.com/ru/post/1623150/


All Articles