I’ve just discovered Obsidian. Am very, very impressed by how such a simple interface solves so many pain points I’ve had with text notes.
However!
Use case or problem
Obsidian defines prismjs code blocks using backticks followed by the language, e.g., ```js
The prismjs spec requires prefixing with language- or lang-, e.g., ```language-js
This means that code blocks inserted via Obsidian are not compatible if the text file is opened in any other apps using prismjs (in my case DEVONthink), and vice versa.
Proposed solution
Allow Obsidian to recognise code blocks in a manner consistent with the prismjs spec, i.e., with the language- or lang- prefix.