diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2017-08-06 19:26:50 -0700 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2017-08-06 19:35:03 -0700 |
commit | a36a56b8ac5fea612c1d0614d4e1cb14ffc3a21b (patch) | |
tree | d980bf45b6d01f6eb1b7256bb772c2cce6368702 /src/Text/Pandoc/Readers/Odt/StyleReader.hs | |
parent | 8164a005c0ac9e36d9d1485fcf38e9073a1bcd68 (diff) | |
download | pandoc-a36a56b8ac5fea612c1d0614d4e1cb14ffc3a21b.tar.gz |
Docx reader: Avoid 0-level headers.
We used to parse paragraphs styled with "HeadingN" as "nth-level
header." But if a document has a custom style named "Heading0", this
will produce a 0-level header, which shouldn't exist. We only parse
this style if N>0. Otherwise we treat it as a normal style name, and
follow its dependencies, if any.
Closes #3830.
Diffstat (limited to 'src/Text/Pandoc/Readers/Odt/StyleReader.hs')
0 files changed, 0 insertions, 0 deletions