evilstreak/markdown-js — pull request #209 by Elberet (2014-09-02 18:34:47+00:00)
Title: FIX: edge cases with bbcodes looking like reference definitions and empty links

This fixes certain cases, where BBCode-style tags supported by a custom dialect are treated as reference definitions instead, e.g. `[b]label[/b]: description`.

Ported from https://github.com/discourse/discourse/pull/2731.