Skip to content

Support --toc for Markdown and Textile writer #829

Closed
Schmoozerd opened this Issue · 2 comments

3 participants

@Schmoozerd

Hello,

sorry if this is a bad feature request, i just used pandoc quite happily, but when i tried the --toc option (for markdown writer) I noticed that there aren't links created.

So I suggest to create the TOC with internal links to the listed sections.

Writer: markdown[_github]
Version: Current
Related Code: https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Writers/Markdown.hs#L197

Thank you for your nice program :+1:

P.S I noticed also that textile format does not yet support --toc

@mpickering mpickering changed the title from Feature Request: --toc created Table Of Content, use internal links to Support --toc for Markdown and Textile writer
@mpickering
Collaborator

Thanks for your report - this shouldn't be too difficult to implement.

@vladchimescu

Are there any updates on this one? I tried to generate TOC with the markdown writer, but internal links are not automatically inserted and only a list of sections/subsections (without hyperlinks) is generated. At the same time, HTML writer doesn't have any problems with TOC generation..

@jgm jgm added a commit that closed this issue
@jgm Markdown writer: in TOC, add links to headers.
Closes #829.
4d49f76
@jgm jgm closed this in 4d49f76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.