I'd like to use Mammoth's style map to apply inline styles, like color:red
and custom tags/attributes, though I cannot seem to find anything in the docs that suggest I can. Does mammoth have the capability to do inline styling?
Simple tags and classes works fine, e.g. p[style-name='Heading 3'] => div.foo:fresh
However I'd like to do something like this: p[style-name='Heading 3'] => div(color:red):fresh
or p[style-name='Heading 3'] => div, cust_tag:val:fresh
source https://stackoverflow.com/questions/76096026/using-mammoth-style-map-to-apply-inline-styles-and-custom-attributes
Comments
Post a Comment