Use case or problem
I’m using Obsidian to write dairy, and today when I’m trying to create a folded part (<details>), I came across the problem where
- Markdown syntax isn’t being properly parsed & previewed; and
- Direct empty lines put everything below that line outside the
<details>, even if </details> is after that.
This empty line problem also exists in a lot of other tags, such as <font>, <center>, etc.
I’ve also tried the same text on a lot of other markdown editors (randomly grabbe, all of these worked exactly as expected.
Proposed solution
After asking around in the official Discord server, I was told that it could be a parser problem, that a part of the parser is missing. (Correct me if I’m wrong here!) So the thing is, it would be pretty awesome if we can have these features back in the preview mode.
Current workaround (optional)
HTML tags still work inside these tags;
still works for an empty line, but these kinda hurt the readability of the raw .md file.
Also, the empty line problem is also gone when included in a <pre> tag.
Some extra screenshots:
↑ Note that these text are NOT correctly folded due to the empty line
↑ The same text with the first empty line removed; Also notice that single line breaks still disappeared.
↑
<pre> tag temporarily solves the problem, but still no markdown parse
Edit: <div> tag too plz!!
Edit 2: Well, Maybe <div> is too broad to be supported with, so never mind.