diff options
author | Nikolay Yakimov <root@livid.pp.ru> | 2019-09-15 01:40:23 +0300 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-21 11:18:15 -0700 |
commit | c113ca6717d00870ec10716897d76a6fa62b1d41 (patch) | |
tree | 3855697f666c24b7a11b49a9bc5429984e86b270 /README.template | |
parent | fd14ad52618c98928ab83aa43689158cc788c4a8 (diff) | |
download | pandoc-c113ca6717d00870ec10716897d76a6fa62b1d41.tar.gz |
[Docx Reader] Use style names, not ids, for assigning semantic meaning
Motivating issues: #5523, #5052, #5074
Style name comparisons are case-insensitive, since those are
case-insensitive in Word.
w:styleId will be used as style name if w:name is missing (this should
only happen for malformed docx and is kept as a fallback to avoid
failing altogether on malformed documents)
Block quote detection code moved from Docx.Parser to Readers.Docx
Code styles, i.e. "Source Code" and "Verbatim Char" now honor style
inheritance
Docx Reader now honours "Compact" style (used in Pandoc-generated docx).
The side-effect is that "Compact" style no longer shows up in
docx+styles output. Styles inherited from "Compact" will still
show up.
Removed obsolete list-item style from divsToKeep. That didn't
really do anything for a while now.
Add newtypes to differentiate between style names, ids, and
different style types (that is, paragraph and character styles)
Since docx style names can have spaces in them, and pandoc-markdown
classes can't, anywhere when style name is used as a class name,
spaces are replaced with ASCII dashes `-`.
Get rid of extraneous intermediate types, carrying styleId information.
Instead, styleId is saved with other style data.
Use RunStyle for inline style definitions only (lacking styleId and styleName);
for Character Styles use CharStyle type (which is basicaly RunStyle with styleId
and StyleName bolted onto it).
Diffstat (limited to 'README.template')
0 files changed, 0 insertions, 0 deletions