I’m attempting to copy/paste code snippets, but no matter if I use Ctrl + v or Ctrl + Shift + V, Obsidian will always change special characters and add several additional ones in a way that makes no sense to me. The “%” sign is giving me the most trouble, but i’m also getting a lot of additional “E’s”, brackets, parenthesis, and “3’s”
I’m brand-new to Obsidian, and have just been teaching myself as I go while I attempt to build out a Vault I can use for work.
I have never used Markdown, YAML, or anything similar to HTML. I’m using v0.14.6 on Windows 11, if that helps.
Here is what happens whenever I attempt to copy/paste:
The “%” symbol never gives me issues when I copy/paste unless it’s a code snippet. Everything works as expected, and I’ve seen so many people copy/paste in walkthroughs and demos with no issues, so I have no idea why I’m experiencing this.
This happens regardless of whether I’m using Templates, Templater, or just typing notes.
Could someone please help provide some insight or guidance on how to avoid this? It’s becoming prohibitively time-consuming, especially as someone who isn’t super familiar with code and who’s just trying to learn as I go.
Which OS/Browser are you on? Do you have any plugins in the browser/obsidian that might modify the clipboard?
On Windows with Chrome I pasted <% tp.user.generate_periodic_link_markdown(tp, “D”) %> and it came out fine. I copied it from your post though, what is the link to the website where that line of code is from?