Open ajsteele opened 5 years ago
If you use Preview plugin there is a context menu that lets you exclude comments from html. There is also the Copy as clean HTML command that does just that. You can also export to PDF via browser export for example.
I am looking for a way to integrate Pandoc (great product) into wm, alas no viable solution yet. i.
Could I suggest changing the metadata for WM3-files to also support the YAML metadata approach that Pandoc has?
A simple integration would be one that expects Pandoc to either be in the path, or checks at expected locations for Windows and macOS. Bundling it seems like a bit too much hassle.
I want to convert my WM3 Markdown into other formats (eg HTML, PDF, MS Word, etc), potentially using Pandoc which seems to be a good tool for this sort of thing.
One of my favourite features of WriteMonkey is commenting with two forward slashes. However, this doesn't seem to be accepted Markdown syntax, and Pandoc just converts the comments as though they're text. I've written a quick Python script to strip comments and then run Pandoc, but I was wondering if there's a better way to do this.
Also, I've been using document metadata (name and goal), but again Pandoc seems not to support this, even if I use the MultiMarkdown variant (
markdown_mmd
) which adds the Pandoc extensionmmd_title_block
which, if I understand it correctly, is the same syntax.I'm not fixed on using Pandoc if other solutions exist but that's just what I've been trying so far.
I realise this isn't strictly a WriteMonkey question but I was hoping others might have run into similar problems and have ideas! Thanks.