madebymany/sir-trevor-js — pull request #2 by andrewsprinz (2012-10-08 14:11:05+00:00)
Title: Regex for toHTML was failing on links when multiple markdown links are present in pasted in content

All your regex r belong to me.

On a side note, I'm sort of allergic to any form of parsing on paste like this, it's prone to breakage, especially when considering the constantly shifting specs of browsers' contenteditable fields.

The idea behind this editor was to avoid this sort of WYSIWYG parsing beyond what browsers do by default, but I understand that convincing some people to deal with Markdown could be difficult...

Just a thought.