user3890756 user3890756 - 25 days ago 5x
Markdown Question

pandoc output to markdown with _ for italic instead of *

I'm going to translate textile texts to markdown.
Sometimes I found strong and emphasis mixed like this in textile

_*abc* def_

It's translateted in markdown to
***abc* def*
that's not very easy to read.
What can I do to translate it to
_**abc** def_
(all italics to
and bold to
) ?



Unfortunately, the pandoc markdown writer currently always uses *...* for emphasis, never underscores. You can ask on pandoc-discuss for an option to be included...

For now, you could also write a pandoc filter which replaces emphasis elements with some special character, then after pandoc has exported the document run a script to replace the special character back to an underscore.