Skip to content

Commit 94cd792

Browse files
committedJan 18, 2012
Fix poor markdown parsing in tutorial-building script
1 parent 2d85e8f commit 94cd792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/tutorial/lib/markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ Markdown.dialects.Gruber.inline = {
820820
// 1 2 3 4 <--- captures
821821
var m = text.match( /^\[([\s\S]*?)\][ \t]*\([ \t]*(\S+)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/ );
822822

823-
if ( m ) {
823+
if ( m && m[1].indexOf("]") == -1 ) {
824824
if ( m[2] && m[2][0] == '<' && m[2][m[2].length-1] == '>' )
825825
m[2] = m[2].substring( 1, m[2].length - 1 );
826826

0 commit comments

Comments
 (0)
Please sign in to comment.