-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Wrong equation conversion from docx #228
Comments
XML is <m:oMath>
<m:nary>
<m:naryPr>
<m:chr m:val="∑"/>
<m:ctrlPr>
<w:rPr/>
</m:ctrlPr>
</m:naryPr>
<m:sub>
<m:r>
<w:rPr/>
<m:t xml:space="preserve">i=1
</m:t>
</m:r>
</m:sub>
<m:sup>
<m:r>
<w:rPr/>
<m:t xml:space="preserve">n
</m:t>
</m:r>
</m:sup>
</m:nary>
<m:sSup>
<m:sSupPr>
<m:ctrlPr>
<w:rPr/>
</m:ctrlPr>
</m:sSupPr>
<m:e>
<m:r>
<w:rPr/>
<m:t xml:space="preserve">x
</m:t>
</m:r>
</m:e>
<m:sup>
<m:r>
<w:rPr/>
<m:t xml:space="preserve">2
</m:t>
</m:r>
</m:sup>
</m:sSup>
</m:oMath> |
Apparently m:naryPr can contain an m:chr element that specifies the operator character. |
Actually, we do handle m:chr. |
Thanks!!! |
Explain the problem.
When doing conversion from docx to markdown, some simple equations are wrongly converted.
--> $x^{2}$
See attached example (was created with Google Docs, downloaded as docx, opens fine in macOS Pages).
Prueba.docx
Pandoc version?
macOS 12.3
pandoc 3.1.8
Features: +server +lua
Scripting engine: Lua 5.4
The text was updated successfully, but these errors were encountered: