如何强制MediaWiki遵守单行换行符? [英] How can I force MediaWiki to respect single line breaks?
本文介绍了如何强制MediaWiki遵守单行换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,MediaWiki会忽略单个换行符,将其视为单个空格.要在页面中插入新行,必须在源中插入两个连续的换行符,这将导致一个新的段落:</p><p>
.也可以将<br />
直接插入源中.
By default, MediaWiki ignores single line breaks, treating them as a single space. To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph: </p><p>
. It's also possible to insert <br />
directly into the source.
如何修改MediaWiki解析引擎,以便源HTML中的单行换行符自动替换为结果HTML中的<br />
?
How can I modify the MediaWiki parsing engine so single line breaks in the source are replaced automatically with a <br />
in the resulting HTML?
(来源: http://www.mediawiki.org/wiki/Help:Formatting)
推荐答案
使用 https://www .mediawiki.org/wiki/Extension:诗
<poem>
Roses are red
Violets are blue
</poem>
这篇关于如何强制MediaWiki遵守单行换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文