如何链接到同一目录中的文档部分(pandoc markdown->html 输出)
我有两个相当简单的文档(用 markdown 编写,用于使用 pandoc 生成 html 文件)。我希望能够从第一个文档链接到第二个文档的一部分。
解决方案的优先顺序:
- 使用常规 Markdown 功能
- 使用 Pandoc 扩展 使用
- 嵌入式 HTML
I have two fairly simple pieces of documentation(written in markdown that is used to generate html files with pandoc). I'd like to be able to link to a section of the second document from the first document.
Preference order for solutions:
- Using General Markdown Features
- Using Pandoc Extensions Using
- embedded HTML
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Pandoc 有一个“HTML 中的标头标识符"-此用例的扩展。文档中有一个示例,说明如何提供从文档的一个部分到另一部分的链接。
Pandoc has a "Header identifiers in HTML"-extension for this usecase. In the documentation is an example, how to provide links from one section of a document to another.