question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the red color font in docx lost color after transform to html.

See original GitHub issue

the red color font in docx lost color after transform to html. and I add this line to style map:

r[style-name='Red'] => span.red

it’s not work, please help, Thanks a lot.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mwilliamsoncommented, Sep 4, 2018

Mammoth intentionally doesn’t try to copy the formatting of the original document, so if that’s your goal, then Mammoth likely isn’t the right tool for the job.

0reactions
caramdachecommented, Jan 7, 2022

I went a step further and implemented support for table cell fill colour. This was necessary for my use case.

https://github.com/mwilliamson/python-mammoth/pull/117

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the default text color (font color) in Word
Select the arrow next to Font color, and then choose a color. Font color in font dialog. Select Set As Default and then...
Read more >
Converting docx to html (color is lost) - Super User
I use wordtohtml.net. If you want to see how it works in trial mode, convert it here then run the converted text in...
Read more >
Write text in particular font color in MS word using python-docx
I have found the answer myself using python-docx docs,. Here is the correct code: from docx import Document from docx.shared import RGBColor ...
Read more >
Changing All Text of a Particular Color - Word Ribbon Tips
Using the Red, Green, and Blue controls, specify the RGB values of the text you want to change. Click OK to dismiss the...
Read more >
How to Change Color of Hyperlinks in Word - Technipages
Solution: By selecting 'Style Inspector' in the bottom left of the styles window and then clicking on a hyperlink in my document, I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found