Hello,
I'm working on documents marked up with XHTML.
I wrote some utilities to convert them in docx, pdf (through PrinceXML or ConTeXt) and ICML.
Those utilities are far from complete and I'd like to use Pandoc instead.
It would be great to convert <p class=...> and <span class=...> elements to some corresponding paragraph and character styles in docx, odt and ICML.
The concepts of paragraph styles and character styles are common in Word, OpenOffice/Libreoffice Writer and InDesign (and not only them).
They map well to HTML's p+class and span+class.
In Pandoc, paragraphs lack attributes(see
Pandoc.Text.Definition), even if there's a workaround (see
here).
It would be really useful if Pandoc mapped p+class and span+class elements to para and char styles with the same name in docx, odt, icml.
What do you think?
I think it should be an option that you could toggle (i.e. "--map-styles"). Som
ething like (or working with)
--reference-odt and
--reference-docx (and maybe --reference-icml or --reference-idml in the future), but not limited to a fixed set of styles.
I don't know how they should be marked up in markdown, but since it would be specific to those formats, markdown writer could simply ignore that feature.