Tweaking something for an HTML preview action step, and I’m not seeing the output I’m expecting to see as consistently as I should. If I have code like:
itemContent = draft.processTemplate("%% " + itemContent + " %%");
…which flavour of Markdown is being used to process itemContent, and is there any way to specify?
I would expect it to be the default one from the settings, but it could equally as logically be standard Markdown. Should be easy to test with a feature not in standard Markdown.
To be more specific in what is used with the options I’d want to use, I would process any Drafts template tags and then pass the resulting output into one of the Markdown classes set with the desired properties for rendering.
1 Like