Problem sending drafts to Obsidian with text enclosed with "%%"

I am using a single File action step to send current drafts to my Obsidian vault. I’ve customized the File action template to add both yaml and comments enclosed with “%%” (without the quotes) to the current draft. The template looks like this:


aliases:

%%
role::
type::
%%

[[title]]

[[body]]

My problem: the “%%” and “%%” (again, minus the quotes) are converting to “

” and “

” after sending the draft to Obsidian. Does anyone know how to keep the double-parentheses in the template from converting?

Double-percent is the Drafts’ template engine’s markup for running text through the Markdown parser (docs). If you want to use them without them passing through Markdown conversion, escape them with a backslash, like:

\%%
role::
type::
%%
1 Like