Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 341
Roman A. Taycher Avatar asked Jan 22 '12 12:01

Roman A. Taycher


1 Answers

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.

like image 70
Sonson123 Avatar answered Nov 15 '22 05:11

Sonson123