Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmultiscripts processing discards content #29

Open
gimsieke opened this issue May 14, 2024 · 2 comments
Open

mmultiscripts processing discards content #29

gimsieke opened this issue May 14, 2024 · 2 comments

Comments

@gimsieke
Copy link
Contributor

Input:

<mml:mmultiscripts>
  <mml:mi>K</mml:mi>
  <mml:mrow/>
  <mml:mrow/>
  <mml:mprescripts/>
  <mml:mtext>Req</mml:mtext>
  <mml:mrow/>
</mml:mmultiscripts>

Current output:

{}^{}_{}{}{K}^{}_{}

Target output (using katexify.xsl):

{}^{}_{\htmlClass{override-text}{\text{Req}}}{}{K}^{}_{}

I propose that instead of:

<xsl:variable name="pre"  select=".//(*:mn|*:mrow)[preceding-sibling::*:mprescripts]"/>
<xsl:variable name="post" select=".//(*:mn|*:mrow)[following-sibling::*:mprescripts] except $base"/>

we use:

<xsl:variable name="pre"  select="*[preceding-sibling::*:mprescripts]"/>
<xsl:variable name="post" select="*[following-sibling::*:mprescripts] except $base"/>
@mkraetke
Copy link
Member

This code was committed by @pmarkwart in 301d5ab. If he agrees with this change, you can commit this and we check the test results.

@pmarkwart
Copy link
Contributor

Dew it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants