We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d85e8f commit 94cd792Copy full SHA for 94cd792
doc/tutorial/lib/markdown.js
@@ -820,7 +820,7 @@ Markdown.dialects.Gruber.inline = {
820
// 1 2 3 4 <--- captures
821
var m = text.match( /^\[([\s\S]*?)\][ \t]*\([ \t]*(\S+)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/ );
822
823
- if ( m ) {
+ if ( m && m[1].indexOf("]") == -1 ) {
824
if ( m[2] && m[2][0] == '<' && m[2][m[2].length-1] == '>' )
825
m[2] = m[2].substring( 1, m[2].length - 1 );
826
0 commit comments