If you're willing to use docx instead of ODT, you can take advantage of pandoc's support for Custom Styles and avoid the XML wrangling. You simply get a copy of the default reference doc with `pandoc -o custom-reference.docx --print-default- data-file reference.docx`, add a Rose style to `custom-reference.docx`, and give a `custom-style=Rose` attribute in Markdown to colored text.
Hello all. Using Pandoc to help convert my fiction (written in Markdown) into ODT format so I can combine and publish... but in writing, I found a specific use case.I need colored text.For instance, if I define a CSS stylesheet file to color said text, I can use this Markdown:[Are the good guys really good if they use it for cover for evil?]{.rose}I can work around it a bit by exporting to HTML (markdown_phpextra+bracketed_spans) and opening that into LibreOffice, but that opens a whole can of LibreOffice worms relating to web vs PDF/print formatting.Is there a way for Pandoc to translate the CSS stylesheet into ODT styles, and apply said styles as wanted?