-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
text between two display style formulas was removed #8483
Comments
Thanks for the report. It looks like here we have an oMathPara as a child of a w:p node. T.P.Readers.Docx.Parse.hs line 704: elemToBodyPart :: NameSpaces -> Element -> D BodyPart
elemToBodyPart ns element
| isElem ns "w" "p" element
, (c:_) <- findChildrenByName ns "m" "oMathPara" element = do
expsLst <- eitherToD $ readOMML $ showElement c
return $ OMathPara expsLst This code essentially throws away anything in the w:p besides the oMathPara. |
To clarify, oMathPara can be a child of w:p but it can also be a child of w:body -- so in pandoc terms, it can be used in either a "block" or an "inline" context. We should recognize both of these. |
OK, I think the fix was fairly straightforward. @jkr feel free to modify if this doesn't seem right. |
Thanks very much ! Any plan to give a new release ? |
I expect there will be a new release in the next few weeks. |
where is the nightly ? |
Actions / Nightly tab on left |
The windows build failed https://github.com/jgm/pandoc/actions/runs/3673742995/jobs/6211143680 |
Explain the problem.
Text between two display style formulas was removed, only formulas left.
Command:
pandoc.exe aa.docx --self-contained --mathjax -o example35.html
File:
aa.docx
Pandoc version?
Latest version pandoc on win11.
The text was updated successfully, but these errors were encountered: