Cir*_*四事件 4 asciidoc asciidoctor
例如,如果我写:
Notepad++ is *great*, I like Notepad++
Run Code Online (Sandbox Code Playgroud)
它被视为++something++转义结构,忽略粗体*并产生:
<p>Notepad is *great*, I like Notepad</p>
Run Code Online (Sandbox Code Playgroud)
而不是所需的:
<p>Notepad++ is <strong>great</strong>, I like Notepad++</p>
Run Code Online (Sandbox Code Playgroud)
上游讨论:https://github.com/asciidoctor/asciidoctor/issues/1864
在 Asciidoctor 2.0.10 上测试。
一些可以满足我要求的选项:
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}
Run Code Online (Sandbox Code Playgroud)
我不能 100% 确定这是否Notepadpass:[++]只是一次意外。我想我只是跟着去{plus}{plus}。
{plus}记录在:https ://asciidoctor.org/docs/user-manual/#charref-attributes
对于具体情况C++也有{cpp}。