Ethsim2
(Ethan )
1
Hi — this is a follow-up to my earlier post:
I’ve identified that MathJax expressions inside <details> blocks do not render unless a newline is inserted immediately after the <summary> tag.
Minimal reproduction:
This does not render:
<details><summary>Example</summary>
$$
x^2 + y^2 = z^2
$$
</details>
This does render:
<details><summary>Example</summary>
$$
x^2 + y^2 = z^2
$$
</details>
Notes:
- This behavior is unintuitive and undocumented.
- It affects both inline and block MathJax.
- ChatGPT tells me it “Tested on Discourse 3.2.0beta3 with default settings”.
Could this be made more robust or documented somewhere for users relying on math formatting?
1 like
j.jaffeux
(Joffrey Jaffeux)
2
U zou dit probleem niet hebben als u het details-blok zou gebruiken, wat de aanbevolen methode is:
[details="Voorbeeld"]
$$
x^2 + y^2 = z^2
$$
[/details]
1 like
Ethsim2
(Ethan )
3
ah, it’s probably best to not fix this topic then
it’s ChatGPT that needed fixing 
sam
(Sam Saffron)
4
Ja, dit is geen bug, maar een beperking/ontwerp van CommonMark
Het mengen van HTML en Markdown heeft enkele zeer specifieke en enigszins verrassende regels.
1 like
system
(system)
gesloten
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.