Brett on 06 Mar, 2014 03:01 PM
me know if that's something that would be workable for your needs and
I'll look into making it possible.
Hi just a follow-up question to this. After reading http://marked2app.com/help/Special_Syntax.html#tableofcontents I'm wondering if there is a way to make the table of contents show when exporting to HTML but not in preview. In other words, I'd like to use the cmd+T window while previewing but have links at the top when exporting.
When I have the "Print table of contents" box checked it behaves this way for printing, just not exporting to HTML.
Brett on 23 Aug, 2015 04:16 PM
Not for HTML export. "Print TOC" only affects print and PDF export. HTML
export only gets what's in the preview right now.
It's possible to apply some CSS using the "Additional CSS" in Style
preferences to hide elements in the preview that aren't hidden in export
because Marked applies some special classes during preview. However,
these are dependent on the current theme, so the rule would have to be
repeated if you use multiple themes. Here's an example:
The 'mkstyle--swiss' class is not exported, so the rule would have no
effect in HTML outside of Marked. It's not an ideal solution, but it's
assumed that if you want a manually-inserted TOC, you want it in both
places, and there's currently no option to automatically generate one
during export because it's generating the exported HTML prior to display
With <!--TOC--> I can create a Table of Contents, which is beautifully exported to PDF. However, when I click on an item of this TOC in the PDF, there is no jump to the corresponding chapter. Is it possible to have this working?