我使用mediawiki-1.30.0
并希望在 MediaWiki 中加粗部分代码片段。不幸的是,正如这里所描述的,它似乎 在标签<b></b>
中不起作用。pre
此外,我没有找到任何方法来加粗SyntaxHighlight_GeSHi扩展中的一部分代码,它附带MediaWiki 1.21
及更高版本。
如何在不在每行前面添加空格的情况下加粗部分代码片段?
编辑
我测试了所有这三个:
<pre>
a <strong>text</strong> inside another ...
</pre>
<pre>
a <strong>text</strong> inside another ...
</pre>
<code>
a <strong>text</strong> inside another ...
</code>
结果是一样的:
a <strong>text</strong> inside another ...
仅<code></code>
粗体文本,例如以下两个代码
<code>
a <strong>text</strong> inside another ...
and another line
</code>
<code>
a <b>text</b> inside another ...
and another line
</code>
结果是:
另一个内的文本...和另一行
如您所见,它正在处理<b></b>
;但不保留new line
字符。