leeoniya / reMarked.js

client-side HTML > markdown
http://leeoniya.github.io/reMarked.js/
396 stars 97 forks source link

Allow re-use of render method. Fixes to reference links for Links & Images. #27

Closed RoryH closed 10 years ago

RoryH commented 10 years ago

There seemed to be definite issues with the rendering of images and links in relation to producing the reference list at the bottom of a Markdown document. This should fix the reference list.

I also made the render method reusable. Previously it would convert cfg.unsup_tags[] items to RegExp without checking if they already were generated causing an error and failure.

leeoniya commented 10 years ago

thanks for contributing, give this updated version a test run since i modified the patch.