[Markdown] Fix regex to not be overly greedy.