mammoth.js
mammoth.js copied to clipboard
Automatically set multiple class in output from specific selectors
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!