Closed kapouer closed 14 years ago
Thanks for catching this one. Unfortunately tweaking the regex like that breaks a bunch of other formatting tested in test/features/. I've added a feature test for this issue to my local copy and will look into a fix for it.
Looking at other Markdown implementations (via http://babelmark.bobtfish.net/) the original and several others seem to allow a single space but not multiple spaces nor tabs.
As such I've changed the regex to: /^\[([\s\S]*?)\](?: ?\[(.*?)\])?/
safest choice ! thanks
Hi, i just figured other markdown tools assume one can put whitespaces there. Here's a simple patch :