3

For example, if I write:

Notepad++ is *great*, I like Notepad++

it treats ++something++ as an escape construct which ignores the * bold and produces:

<p>Notepad is *great*, I like Notepad</p>

instead of the desired:

<p>Notepad++ is <strong>great</strong>, I like Notepad++</p>

Upstream discussion: https://github.com/asciidoctor/asciidoctor/issues/1864

Tested on Asciidoctor 2.0.10.

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985

2 Answers2

5

A few options that do what I want:

Notepadpass:[++] is *great*, I like Notepadpass:[++]

Notepad{blank}pass:[++] is *great*, I like Notepad{blank}pass:[++]

Notepad{plus}{plus} is *great*, I like Notepad{plus}{plus}

I'm not 100% sure if the Notepadpass:[++] is meant to work of just an accident. I think I'm just going with {plus}{plus}.

Where {plus} is documented at: https://asciidoctor.org/docs/user-manual/#charref-attributes

For the specific case of C++ there is also {cpp}.

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
1

Another option is to use a backslash to escape the first ++:

Notepad\++ is *great*, I like Notepad++

This works in a similar way on other formatting as well.

ahus1
  • 5,782
  • 24
  • 42