When I copy and paste code blocks of type “shell”, “python”, “yaml”, and probably many more from an exported PDF file of my obsidian notes, it is pasting incorrectly with duplicate entries of each letter/character.
Steps to reproduce
- Insert the following into a Obsidian Note:
# This is shell code block format. ls -lrth
# This is python code block format. test = ""
# This is YAML code block format. test: "value"
# This is default code block format. ls -lrth
Export to PDF using the in-built feature.
Open PDF and copy and paste code block from PDF to terminal or notepad.
Copy and paste of code block works, where if i copy ‘ls -lrth’ i should paste and get ‘ls -lrth’ for each different type of code block formatting.
Copy and paste of code block for any type aside from default code block ``` results in duplicate text.
If i copy ‘ls -lrth’ from PDF, and paste i get ‘llss --llrrtth’. This is happening for the shell/python/yaml code block formatting.
- Operating system: Windows 10
- Obsidian version: v0.12.12
- Plugins: Disabled