fix bad markdown performance
also improve the interpolation parser
Merge pull request #480 from Dandandan/dev

Fix bad markdown performance