#### dylanlee.evans95

22 Nov, 2015 11:16 AM

Thanks.

1. Support Staff Posted by Brett on 23 Nov, 2015 02:22 PM

in PDFs are currently impossible with Apple's webkit export, which is
what Marked uses. I will probably be rewriting a custom exporter from
scratch, but it's not going to be possible in the immediate future.

You can use external tools such as wkpdf or PrinceXML to generate the
PDFs, but clearly that's an inconvenience.

-Brett

2. Posted by Dylan Evans on 23 Nov, 2015 11:26 PM

Good to know. Thanks very much.

--
Dylan Evans

3. Posted by josh on 11 Dec, 2015 03:39 PM

Awesome, Brett - glad this is something you might do, as it would be an really nice to have. I'll look into wkpdf and PrinceXML in the meantime. Thanks!

4. Posted by Roel Van Gils on 17 Nov, 2016 06:08 PM

Is it correct that exporting to DOC(X) also doesn't generate a clickable TOC? I can't send off documents to my clients without a working table of contents and sending an HTML file is not an option.

wkpdf doesn't seem to be maintained anymore and PrinceXML is very expensive.

Any ideas?

5. Support Staff Posted by Brett on 17 Nov, 2016 08:01 PM

The current DOCX export does not support TOC, no. The limitation is frustrating to me as well. I'm working on a new RTF export that will make this a possibility, but right now the libraries Apple provides have made it very difficult to export intra-document links within a PDF from a web preview.

6. Posted by Roel Van Gils on 19 Nov, 2016 10:08 AM

In undestand. What would you suggest as an interim solution (using a third party tool, a command line application or something else). What do you use yourself?

Right now, this is the only thing missing in Marked.app to make it really awesome for generating all my documents.

Thanks,
Roel

7. Support Staff Posted by Brett on 21 Nov, 2016 05:05 PM

I personally rarely need a TOC in a PDF, so I haven't spent much time
figuring out alternatives. PDFpen Pro should be able to do it. I believe
that Ulysses' PDF export can also create one properly (I do have
intentions of adopting a similar solution, eventually).

-Brett

8. Posted by Roel Van Gils on 22 Nov, 2016 10:08 PM

Thanks for tips. I use Ulysses for writing, but I don't like its export features. That's why I use Marked :) Will look into PDFPen.

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 21 Feb, 2020 11:32 PM Option to use MathJax 3? 20 Feb, 2020 03:12 PM Regular crashes 13 Feb, 2020 09:22 PM Markdown Formatting 11 Feb, 2020 11:53 AM Custom themes not working 10 Feb, 2020 06:48 PM KaTex Preview Update

## Recent Articles

 Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words How do I retrieve a lost license (direct version)