I have some code fences where I just have plaintext, so I leave them as just 3 backticks without a language suffix. While this does render as preformatted text, the line spacing is way too wide. A work around is to place a language suffix like “```txt”.
Kinda surprising. Seems to me like the default should be plaintext if not specified and that the line spacing should be the same as code, not wider.
Code fences without language suffix render with abnormal line heights.
Steps to reproduce
- Create a note
- Create a code fence using 3 backticks ` (don’t specify the language)
- Write some plain text and close correctly
Expected result
Preformatted text area should render with the same line height as code. It should just be missing the colors.
Actual result
Line height is wider than normal code.
Environment
- Operating system: Linux
- Obsidian version: v0.7.6