I want to parse markdown emphasis automatically in XeLaTeX. This basically means converting asterisks either side of a word into the \emph{word} that LaTeX uses. I know that more complex Markdown parsing is impossible, but this seems quite simple. Unfortunately, I don't know how to go about replacing something that is not a command.
-
2See tex.stackexchange.com/a/15374/4427 – egreg Jun 2 '14 at 11:08