如何使用 asciidoc 传递处理方括号?
How can I pass processing square brackets with asciidoc?
Asciidoctor 正确呈现以下行。
some text [address[title]]
当我像这样添加硬中断时,
some text +
[address[title]]
第二行根本没有渲染。
我该如何解决这个问题?
更新
到目前为止,我发现一位领先的 space 完成了所需的工作。我不确定这是不是期望的效果。
some text +
[address[title]]
问题是新行上的 [xxx]
是为下一个集团定义角色的语法。
当 Asciidoctor paser 混淆时,我的解决方案是在我的文档之上定义一些变量并使用它们:
:opening-bracket: [
:closing-bracket: ]
{opening-bracket}address{opening-bracket}title{closing-bracket}{closing-bracket}
还有一个技巧——添加一个"dummy"硬中断:
some text +
[address[title]] +
Asciidoctor 正确呈现以下行。
some text [address[title]]
当我像这样添加硬中断时,
some text +
[address[title]]
第二行根本没有渲染。
我该如何解决这个问题?
更新
到目前为止,我发现一位领先的 space 完成了所需的工作。我不确定这是不是期望的效果。
some text +
[address[title]]
问题是新行上的 [xxx]
是为下一个集团定义角色的语法。
当 Asciidoctor paser 混淆时,我的解决方案是在我的文档之上定义一些变量并使用它们:
:opening-bracket: [
:closing-bracket: ]
{opening-bracket}address{opening-bracket}title{closing-bracket}{closing-bracket}
还有一个技巧——添加一个"dummy"硬中断:
some text +
[address[title]] +