Closed AHabes closed 2 years ago
4 spaces starting a code block is intentional and multiple markdown specifications mention it.
https://spec.commonmark.org/0.30/#tabs https://markdown-guide.readthedocs.io/en/latest/basics.html#code-block
Click on the code icon to try to disable the code block, notice that the text is shifted to the left by two spaces.
It's actually turning the 4 spaces into a tab character, which is also valid for a code block.
Keep clicking the code block icon, notice that the previous spacing keeps getting deleted.
With the text selected, the editor will then surround the text with ` characters, toggling the code block.
Describe the bug
The text typed after 4 white spaces (or more) automatically becomes a code block. Clicking on the code icon shifts the text left by two spaces.
To Reproduce
Expected behavior Even after starting with 4 spaces, the typed text should still be text, not a code block.
Version information Browser: Chrome Version 101.0.4951.64 (arm64) EasyMDE version: v2.16.1