Hide text with Latex in it

I need to hide problem solutions in Obsidian, but they contain LaTeX. The html details tag does not render LaTeX. Is there another way to hide text?

You may try comments: Use %% to enclose text which will be parsed as Markdown, but will not show up in the preview.

Here is some inline comments: %%You can't see this text%%

Here is a block comment:
%%
It can span
multiple lines
%%

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.