我的目标是为 bitbucket 的 wiki 浏览器创建一个本地可浏览的克隆。页面使用克里奥尔语语法编写。
我正在使用 python-creole 将文件呈现为 html。它工作得比较好,但是 python-creole 和 bitbucket 呈现内部链接的方式有所不同。
在 Bitbucket 网站上,带有空格的内部链接 like[[system programming]]
将呈现为<a href="/wiki/system_programming">system programming</a>
(空格替换为_
),而使用 python-creole 这将呈现为<a href="system programming">system programming</a>
.
我可以将 python-creole 调整为用 _ 替换空格吗?如何?