flibustenet
flibustenet

Reputation: 82

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 **) ?

Thanks

Upvotes: 2

Views: 2322

Answers (1)

mb21
mb21

Reputation: 39189

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.

Upvotes: 2

Related Questions