New user, having trouble with Obsidian Leaflet!

Hey! I’m super new to obsidian. I don’t know if this is the correct place to post this but here goes. I’m trying to use Obsidian Leaflet and when I copy and paste the code it only ever shows up as red and doesn’t render at all. I’m pasting the backticks and everything, not sure what the problem is. I also have absolutely no coding experience so that may be part of the problem! :joy:

Can you share a screenshot or paste the code you’re trying to use.

Better yet, share a link to the code you’re trying to copy. Maybe you do need the backticks? Maybe you need to remove them. I don’t know. I’ve never used or looked at Leaflet.


The first screenshot is my paste, the second one is the example given in the plugin page

You need to have it exactly the same.

In your example, it’s all on one line. You need to put those line breaks.

If pasting automatically collapses it onto one line, then try the paste-without-formatting that I mentioned.

That worked! Thank you so much.

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