mammoth.js icon indicating copy to clipboard operation
mammoth.js copied to clipboard

Automatically set multiple class in output from specific selectors

Open julientaq opened this issue 2 years ago • 0 comments

Hi there! First, amazing work. Quite useful and the stylemap system is brilliant!

I’m trying to find a way to automatically set multiple class, like this:

p[style-name^='meta-'] => p.stylename

in Word, i have multiple styles starting with meta:  “meta-title”, “meta-date”, etc.
And i’d like to have those as classes of my html (if possible by removing the meta- part of the name).

Is there any simple way to do that? Thanks!

julientaq avatar Mar 30 '22 08:03 julientaq