thomblake/github-flavored-markdown — pull request #1 by caseman (2012-07-01 00:45:26+00:00)
Title: AMD support and fix for fenced code detection

The first fix adds AMD module support (e.g. requirejs), it just adds a conditional block that calls define() if the script is called from an AMD loader. This is complimentary to the existing node/commonjs support.

The other fix is for detecting fenced code blocks. Previously inline code was sometimes being detected as a standalone code block, even with a single backtick, but the regex did not properly extract the content. This resulted in an unexpected block containing only the first character of the inline code to be inserted. The fix uses a stricter regex that should not match any inline code blocks.