# Parse markdown automatically (just emphasis) without luatex [duplicate]

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.

• – egreg Jun 2 '14 at 11:08