为什么 Sphinx+MyST 在生成的输出中在 HTML 标签内放置空格?

问题描述

我是 MySTSphinx 的新手,所以也许这有一个明显的解释,但对我来说并不明显。每当我在 Markdown 源代码中使用任何结构时,例如粗体或斜体,甚至是 <span> 等 html 元素,格式化的 HTML 输出中的结果都会在 HTML 标签内包含空格。例如,输入如

* **Barcode**: the barcode identifying the item
* **Title**: the title of the item.
* **Author**: the author of the item.

产生这个:

enter image description here

注意 : 前的空格。检查 HTML 发现粗体元素包含意外的空格字符:

enter image description here

注意 <strong>...</strong> 内的空格。为什么会这样?我究竟做错了什么?更重要的是,我如何让它停止?

我使用的是带有 myst-parser 0.13.3 的 Sphinx 3.4.3。我的 conf.pyextensions 定义为“myst_parser”、“sphinx.ext.autodoc”、“sphinx.ext.autosectionlabel”和“sphinx.ext.napoleon”。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)