Exporting multiple markdown docs to PDF
I have a document that has several links to other markdown files. When I export the main document, I would like the links to the other markdown files (*.md) also converted to pdf automatically and the links in the main PDF document reference the converted PDF images of the subdocuments.
Is this possible?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 08 Mar, 2016 05:57 PM
This scenario is not currently possible because Marked 2 concatenates
all of the files prior to processing, thus it has no reference for
relative urls rooted in folders other than where the main document is.
I'm considering having it scan for and replace relative paths prior to
importing the included files, but not currently.
-Brett
Support Staff 2 Posted by Brett on 08 Mar, 2016 05:59 PM
Sorry, this reply was to another question. Your scenario would require a custom processor script, and you'd have to handle the pdf generation manually using pandoc or wkpdf. It's not something Marked is equipped for by default.