Skip to content

Commit 522dddd

Browse files
committed
---
yaml --- r: 7412 b: refs/heads/master c: 94cd792 h: refs/heads/master v: v3
1 parent 29bf671 commit 522dddd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 2d85e8f59a59233c83889e74e9e41dbf257c91b5
2+
refs/heads/master: 94cd792b9247b6208d12f9722fa4aa74ae673772

trunk/doc/tutorial/lib/markdown.js

Lines changed: 1 addition & 1 deletion
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)