How do I make a link to a section of a document in the same directory(pandoc markdown->html output)

眉间皱痕 提交于 2019-12-23 10:14:56

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/8961208/how-do-i-make-a-link-to-a-section-of-a-document-in-the-same-directorypandoc-mar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!