有没有办法隐藏/删除 MyST 特定的语法,以便可以使用常规 Markdown 解析器?

发布于 2025-01-16 21:03:59 字数 214 浏览 1 评论 0原文

我通常使用 ReST 和 Sphinx 来生成文档,但我正在处理预先存在的 Markdown 系统。我想使用 MyST 和 Sphinx 生成带有参考和 autodoc 的文档,但也使其可用于现有系统。有没有办法自动从 Markdown 文件中删除 MyST 特定的语法?

我尝试使用常规 Markdown 解析器渲染 MyST 语法,并且 MyST 特定的语法要么被视为常规文本,要么被视为代码块。

I usually use ReST and Sphinx for generating documentation, but I'm dealing with a pre-existing Markdown system. I'd like to use MyST and Sphinx to generate documentation with references and autodoc, but make it available to the existing system as well. Is there a way to automatically strip out the MyST-specific syntax from the Markdown files?

I tried just rendering MyST syntax with a regular Markdown parser and the MyST-specific syntax was either treated as regular text or a code block.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文