question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate TOC when exporting to HTML/PDF

See original GitHub issue

A new feature:TOC

If there is a way to generator TOC automatically. Or, I just type [toc] in the first line,it will turn to A catalog and update while content is changing.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:25 (6 by maintainers)

github_iconTop GitHub Comments

23reactions
CrystalRayscommented, Jun 29, 2021

Could Mark Text export pdf with the index? What I mean is not the content table in document but the index info that could be recognized by the pdf viewer which will show it on the side bar.

10reactions
dakiracommented, Nov 4, 2019

@Jocs There doesn’t need to be any extra syntax. Just ask if a TOC should be included on export. stackedit.io allows for this:

Bildschirmfoto 2019-11-04 um 21 29 17

The result adds a navigational sidebar to the html like this:

Bildschirmfoto 2019-11-04 um 21 33 50
Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML to PDF adding a table of contents (TOC) dynamically
The idea is that we will loop over the elements that are marked with data-toc and create corresponding Table of Contents elements.
Read more >
Markdown TOC exported to PDF? - DEVONthink
MultiMarkdown generates a table of content by {{TOC}} . It's not a separate file and it will only work if you export to...
Read more >
Create Multiple TOC in Single PDF & Stable HTML to PDF ...
Create Multiple TOC in Single PDF & Stable HTML to PDF Conversion. Aspose.Pdf is a .Net Pdf component to write Pdf documents without...
Read more >
Create PDF With Bookmark and TOC from HTML with ...
This tip shows how to export HTML to PDF with Bookmark and TOC using iTextSharp. Technology includes ASP.NET MVC, iTextSharp 4.1.6 ...
Read more >
Table of contents in the exported PDF document to have page ...
wrap the 'Table of Contents' information in a div - with a classname of 'rbtoc' followed by a 13 digit number which is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found