HTML not displaying in Read View

What I’m trying to do

Embed images in notes using html rather than markdown. I am trying to have images appears in both edit view and read view.

Things I have tried

I have tried going back and forth between markdown and html; I have simplified html.

my code looks like this:
<img src=“file:///path/to/my/file.jpg” height= “200” width= “auto”; title=“title of image” border=“3”/>

The image appears just fine in edit view. In read view it displays as the raw code. Any help on trying to fix this would be greatly appreciated!

Could it be related to that extra ; after the width= "auto"; declaration?

That looks a little strange.

Bonus tip: How to present code properly in a forum post

If you want to showcase either markdown, or code blocks, or dataview queries properly in a forum post, be sure to add one line before and one life after what you want to present with four backticks, ````. This will ensure that any other backticks (like for code blocks) is properly shown.

And simplifying the html when you want us to locate errors, might not be the best thing to do…

1 Like

Wow, a week of banging my head against the wall for an error in the copy formula. Thank you!

And thank you for the reminder of posting script.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.