obsidian-code-block-from-selection icon indicating copy to clipboard operation
obsidian-code-block-from-selection copied to clipboard

Doesn't respect indentation

Open ProCycle opened this issue 4 years ago • 1 comments

When I use this to convert an indented line to a code block the current indentation is ignored

3. ### Setup HAProxy

    1. Install HAProxy
       sudo apt install haproxy

Becomes

3. ### Setup HAProxy

    1. Install HAProxy
\```bash
       sudo apt install haproxy
\```

Instead of

3. ### Setup HAProxy

    1. Install HAProxy
		```bash
 		sudo apt install haproxy
		```

Note that to be indented properly code blocks have to be indented again for some reason

ProCycle avatar Oct 20 '21 23:10 ProCycle

It makes sense. Thanks for the suggestion.

dy-sh avatar Oct 21 '21 08:10 dy-sh