I try to reformulate and simplify the question. Example: A word with a custom style. Convert it from markdown to HTML (pandoc -f markdown -t html) and you get:

A word with a custom style.

Convert it from markdown to ICML (pandoc -f markdown -t icml) and you get: A word with a custom style.
The styled word is put in a CharacterStyleRange of its own, but there's no trace of the class attribute. Is there a way to get this: A word with a custom style.
This way, when you import the ICML in InDesign, in a document with myStyle previously defined as a character style, you get the right formatting. The same could be thought for DOCX and ODT, with reference documents that contain the styles you need. I have used the class attribute to map the style, but another attribute could be used: it's only conventional. I think this "style mapping" should be disabled by default, but enabled by a command line option. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/337e7324-35e6-4774-ad4b-574e33cede54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.