如何链接到同一目录中的文档部分(pandoc markdown->html 输出)

发布于 2024-12-28 11:25:13 字数 181 浏览 4 评论 0原文

我有两个相当简单的文档(用 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 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多像笑话 2025-01-04 11:25:13

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文