obsidian-code-block-from-selection
obsidian-code-block-from-selection copied to clipboard
Questioning the existence of this plugin...
I'm not sure why this plugin exists since it's already possible to type ``` after selecting a block of text in any (AFAIK) Markdown editor, and it would be converted into a block of code automatically.
I found this useful. Copy/paste some unformatted text and then select the portions that are code and run this command.
Way easier that typing the ``` at top and bottom.
With Obsidian (at least for me, in the current version) selecting a block of text and typing ``` makes the block disapear and be substituted with ```.
Edit: Interesting, tried again and typing ``` does work, but not always.