Code blocks not pasted as code blocks

Steps to reproduce

  1. Visit the website: AWS re:Inforce IAM433 - IAM Policy Evaluation - Ermetic.
  2. Select any part of the article with code blocks and copy it to clipboard
  3. Paste the clipboard to a new Obsidian page.

Did you follow the troubleshooting guide? [Y/N]


Expected result

Having the pasted code block appear in the note as a code block (enclosed with triple “`”) in Markdown format.

Actual result

Having the pasted code block appear in the note as normal text in Markdown format.


Obsidian version: v1.3.5
Installer version: v1.3.5
Operating system: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 22.5.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 7
Plugins enabled: 6
1: Templater v1.16.0
2: Linter v1.17.0
3: Hider v1.2.5
4: File Hider v1.1.1
5: Highlightr v1.2.2
6: Local Images Plus v0.15.7

Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Additional information

Plugins had been updated. Also tested in Sandbox as well. Same problem.

not a bug. we have no ideas you are pasting code.

I thought people would copy/paste snippets from websites to Obsidian as notes? And many sites have code blocks. I am doing it all the time and usually it works just fine but not for that website.
As an example, I can copy/paste from this site: What is a Quantum Ledger Database? | tecRacer Amazon AWS Blog. If it is not a bug, perhaps it should be flagged as a feature request?

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