Code block inside details tags

I use code blocks quite frequently in <details> tags, which Obsidian doesn’t render properly. This makes it difficult for me to use Obsidian.

I found “code-block-inclusion-inside-details-section/98447” (sorry the forum doesn’t let me add links :man_facepalming:) but the suggestion doesn’t work for me. It’s easy to edit the code in a code block as the lines are not prefixed, e.g. with > in a callout.

Is there another feature for code blocks that I can use in a similar way with <details> tags that (1) Obsidian renders properly (2) doesn’t require prefixing each code line?

Once you make a few posts, reply in topics, etc., you’ll be able to post links. Sorry about that, it’s for spam prevention.

You can post links as inline code or in a code block for now.

It could allow links to the forum itself.. those can’t be spam.