我想写下以下句子:
Don't forget to escape the :code:`\`` character, it will be interpreted as code mark
但我不知道如何转义反引号 "`
" 字符。这是否可能呢?
我想写下以下句子:
Don't forget to escape the :code:`\`` character, it will be interpreted as code mark
但我不知道如何转义反引号 "`
" 字符。这是否可能呢?
在解释文本中,你无法避免反引号的使用,因为反引号本身定义了需要被解释的内容。
至少有两个选项。后一个选项与使用:code:
并转义反引号的结果相同。
Don't forget to escape the \` character, it will be interpreted as code mark
.. |bt| raw:: html
<code class="code docutils literal notranslate">`</code>
Don't forget to escape the |bt| character, it will be interpreted as code mark
raw:: html
不会在 PDF(和其他非 HTML)版本的文档中显示。 - Petr Viktorin