javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.09k stars 71 forks source link

Content being moved out of non-codeblock admonition #113

Closed MathewBlanc closed 2 years ago

MathewBlanc commented 3 years ago

Hi!

Just wanted to let you know about an issue I've been having with the non-codeblock admonition feature.

Markdown view

image

(note: "ex" is a custom admonition I've created)

Preview

image

Issue

Basically, the content from within the admonition is being rendered outside the admonition in preview mode. It also appears to be a bit unstable, in that it was originally showing the table within the admonition, but the 'Correspondences' bold text and content was outside. I restarted obsidian to see if that would fix the issue, and now it's rendering all the content outside.

Set up

This is on an M1 mac, with the latest version of obsidian (0.12.19)

valentine195 commented 3 years ago

Yeah, the non-code block syntax is a bit brittle. Thanks for reporting the issue.

valentine195 commented 2 years ago

I would recommend using the new MS Doc syntax instead of the !!! syntax. I am going to be phasing the old syntax out over the next few versions, and it is buggy, unstable, and unlikely to ever improve.