Skip to content

Preserve DOCX underline formatting#1600

Open
stablegenius49 wants to merge 1 commit intomicrosoft:mainfrom
stablegenius49:pr-factory/issue-35-preserve-underline
Open

Preserve DOCX underline formatting#1600
stablegenius49 wants to merge 1 commit intomicrosoft:mainfrom
stablegenius49:pr-factory/issue-35-preserve-underline

Conversation

@stablegenius49
Copy link

Summary

  • preserve DOCX underline formatting by passing Mammoth a default u => u style map
  • keep custom DOCX style maps working by appending them after the default underline rule
  • add regression tests covering the default underline rule and custom style-map composition

Testing

  • pytest -q packages/markitdown/tests/test_module_misc.py -k 'docx_converter_preserves_underline_by_default or docx_converter_appends_custom_style_map or docx_comments'

Closes #35.

@stablegenius49
Copy link
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Underline not preserved

2 participants