I want to take my YAML properties and fill them into a notes HTML.
---
Object: Community
RecordType: Client
Name: Test Community
Email: [email protected]
---
`=this.Email` %% works %%
<p>`=this.Email`</p> %% does not work %%
Things I have tried
I have tried searching in both Home - Obsidian Help and this forum here and was unable to find the syntax that would make this work.
I can achieve what I am looking for with Templaters plugin, but as soon as I want to update a property of a file, the text in the HTML is no longer linked to the frontmatter.
Does this have something to do with the <script> sanitizing that the help docs reference?
I’m a little late to the party, but if you wanted to use dataview you’d need to enclose it all within dataview. Especially note that markdown doesn’t work within html tags, but you can use dataview to produce html.
So a simplistic example using an url property, could look like:
If you switched to dataviewjs, you could use more advanced stuff as well, and it would kind of resemble the templater variant, but using javascript string interpolation instead.