I like to use hidden Q&A boxes in my documents as follows:
What is the answer to the ultimate question of life, the universe, and everything?
42
However, when I try using LaTeX in these boxes it does not work. For instance, the following code will not render as desired.
<details><summary>
What's the inverse for $x\mapsto e^x$?
</summary>
<p>
The inverse to $x\mapsto e^x$ is the logarithm.
</p></details>
Wheras $x\mapsto e^x$ would render perfectly outside of the box.
A somewhat related issue seems to be that the environment does not respect linebreaks in the same way as the plain editor. (Instead I have to use <br>
.)