* [NTG-context] Inline equations and html export
@ 2024-09-18 7:21 Florent Michel
0 siblings, 0 replies; only message in thread
From: Florent Michel @ 2024-09-18 7:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1325 bytes --]
Hello,
Thanks Hans and everyone who has worked on it for the new upload!
I have noticed a change which seems to break XML/html export for inline
equations; although I don't know if the issue is with the new version or
with how I'm using it.
Minimal example:
```
\setupbackend[export=yes]
\setupexport[alternative=html]
\starttext
$1 + 1 = 2$
\stoptext
```
When compiling with ConTeXt 2024.09.17 and opening either the `.html` or
`.xhtml` file with Firefox or Chromium, the positions of the 2 and = sign
are reversed, while the equation is correctly rendered when using ConTeXt
2024.08.16.
The (I think) relevant part of the html code generated by ConTeXt
2024.09.17:
```
<div>
<math data-lmtx-blob="1" display="inline" displaystyle="false" xmlns="
http://www.w3.org/1998/Math/MathML"><mrow><mn>1</mn><mo mathcharacter="43"
mathclass="binary" mathgroup="everygroup"
mathindex="43">+</mo><mn>12</mn></mrow></math>=</div>
```
Code generated by ConTeXt 2024.08.16:
```
<div>
<math data-lmtx-blob="1" data-lmtx-meaning="1 plus 1 equals 2"
display="inline" displaystyle="false" xmlns="
http://www.w3.org/1998/Math/MathML
"><mrow><mn>1</mn><mo>+</mo><mn>1</mn><mo>=</mo><mn>2</mn></mrow></math></div>
```
Am I doing something wrong here, or is html export for inline equations not
currently supported?
Best regards,
Florent
[-- Attachment #1.2: Type: text/html, Size: 2301 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-18 7:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18 7:21 [NTG-context] Inline equations and html export Florent Michel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).