Steps to reproduce
Ask a question in Perplexity that outputs a fenced code block.
At the bottom click on the copy icon to copy the results to the clipboard.
Paste the results to a new note in Obsidian.
The code block will not be reproduced faithfully in the raw markdown.
With the clipboard contents still in place paste the same information into a blank document in
Notepad++ or VSCode. The raw markdown is what you would expect. Example data below.
Now “select all” the data that you just pasted into Notepad++ and copy it to the clipboard.
Now paste the contents of the clipboard to a new note in Obsidian the code block will be formatted as you would expect.
Did you follow the troubleshooting guide? [Y/N]
Exact same behavior with restricted mode enabled.
Expected result
The raw markdown for the paste of the fenced code should look like this:
```python
import frontmatter
# Create content for the markdown file
content = "This is the main content of my markdown file."
# Create a dictionary with frontmatter metadata
post = {}
post["title"] = "My Example Markdown"
post["date"] = "2025-03-19"
post["tags"] = ["python", "markdown", "tutorial"]
post["author"] = "Python Developer"
# Create a Post object with content and metadata
post_obj = frontmatter.Post(content, **post)
# Write the post to a file
with open('example.md', 'w') as f:
f.write(frontmatter.dumps(post_obj))
### Actual result
<!-- Instead of the expected result, what happened? -->
python
import frontmatter # Create content for the markdown file content = "This is the main content of my markdown file." # Create a dictionary with frontmatter metadata post = {} post["title"] = "My Example Markdown" post["date"] = "2025-03-19" post["tags"] = ["python", "markdown", "tutorial"] post["author"] = "Python Developer" # Create a Post object with content and metadata post_obj = frontmatter.Post(content, **post) # Write the post to a file with open('example.md', 'w') as f: f.write(frontmatter.dumps(post_obj))
### Environment
<!-- Paste your debug info below, which can be accessed by Command Palette (Ctrl/Cmd-P on Desktop, Swipe down from the top on mobile) enter "Show debug info", and click "Copy to clipboard". -->
SYSTEM INFO:
Obsidian version: v1.8.9
Installer version: v1.8.7
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: Prism v3.6.0
Snippets enabled: 3
Restricted mode: on
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
----------
### Additional information

<!--
Anything else you think would help our investigation, like a screenshot or a log file?
You can drag and drop screenshots to this box.
For large amount of text, try putting them into something like Pastebin.
For videos, upload them somewhere and drop a link here.
-->