You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docx reader ignores underline types other than single (double, thick, dotted, wave, words, …) #11988
The docx reader reads a run as Underline only when w:u has w:val="single". Other underline types are dropped without a warning, even though Word shows them all as underlined text: double, thick, dotted, dash, wave, words and the rest of ST_Underline.
Reproduction
underline.py writes a one-paragraph underline.docx with one run for each underline type:
pandoc 3.12.1 and the 2026-10-23 nightly (66fcaff), Linux x86_64.
Cause
Docx.hs L326-L327 matches only Just "single" <- rUnderline rPr. The rule comes from #1474 (2014), which mapped single underlines to Emph and ignored the other types. The reader now has a real Underline, so a possible fix is to treat every value except none as an underline. The highlight case above it does the same (L308-L310).
Related
Underlining #1474 (merged PR, 2014): "Single underlines become Emph, all other underlines ignored." No discussion of the other types.
Activity
patrick-5546 commentedon Oct 23, 2026
I'll open a PR for this.