Hello. I am finding the auto-generated table of contents from the Markdown file I’m working on to be super useful. I was hoping to be able to keep the TOC when I exported the MD file, yet I’m not seeing that.
Is there some other format I could export to where the TOC gets exported as well?
Rats. Okay then - if you can throw that into the request queue, I’d appreciate it. Either to export to PDF with TOC, or to preserve the links when capturing back into PDF.
Jim’s recommendation is the best choice. MMD Composer isn’t a beauty but comes with great functionality and has always the latest MMD engine because Fletcher is its developer.
Marked 2 is not a MultiMarkdown editor but just a viewer that works well with MMD. And it comes with a number of export options (caveat: PDF export broken on Big Sur).
On the iOS/iPadOS side of things: 1Writer, Drafts and probably some more.
I use iA Writer on osx and iOS for the .md files. The .md editor in DevonThink is very basic and not really usefull for me. I store all .md files within DevonThink devided by project number or topic.
The big plus of an external editor is that the .md file can be moved to the desktop easy while the behaviour stays identical. And it is ready to share with my team over the shared cloud.
And I use picocms at nextcloud to present the .md file to clients in html style over the net.
I am not able to see TOC rendered in Devonthink inside of the file by using: {{TOC}} i.e. it seems that DT does not recognize this syntax? All I get is this in the viewer:
Yes @BLUEFROG I use the headings triggering the according css. The toc (side menu) is now showing H2 only, which is exactly enough in my case. Keeping the md file and rendered html simple.
Edit: You can generate a working PDF toc with pandoc and wkhtmltopdf. However, the resulting PDF is a bit weird in that it might break a table or a code block between pages. So you gain some and you lose some.