We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bf671 commit 522ddddCopy full SHA for 522dddd
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 2d85e8f59a59233c83889e74e9e41dbf257c91b5
+refs/heads/master: 94cd792b9247b6208d12f9722fa4aa74ae673772
trunk/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