Why does the text in Obsidian convert to html?

I have a simple action that appends the draft to my Obsidian note using the Add to Daily Note Plus plugin

The template is as follows:

### [[created|%I:%M %p]]
[[draft]]
%%
The note was taken on [[date]]
%%

The last three lines render as HTML text in Obsidian. The output looks like:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<meta charset="utf-8"/>
</head>
<body>

<p>The note was taken on 2023&#8211;04&#8211;02</p>

</body>
</html>

I cannot figure out how to keep it plain text instead of HTML. Any ideas?

Remove the %%.

That is template syntax for “convert my Markdown to HTML. “

More in docs: Drafts Templates | Drafts User Guide

1 Like

Ah yes!
I wanted to keep the text hidden in the obsidian note and hence %%

You can put a backslash in front, like \%% to escape it and pass through.

1 Like

Thank you! That’s perfect :blush: