git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: Check for null-id'd anchors too.

Otherwise they get left dangling in the document.

commit85579052b5bb7196b62e9d9cd70e164498e49f6c authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 12 Aug 2014, 23:33 (12 years ago) parent194ed88
1 file changed−1
src/Text/Pandoc/Readers/Docx.hs−1
src/Text/Pandoc/Readers/Docx.hs−1
@@ -403,7 +403,6 @@ parPartToInlines (PlainOMath exps) = do
403403
404404isAnchorSpan :: Inline -> Bool
405405isAnchorSpan (Span (ident, classes, kvs) ils) =
406− (not . null) ident &&
407406 classes == ["anchor"] &&
408407 null kvs &&
409408 null ils