diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-18 09:39:19 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-01-18 09:39:19 +0100 |
| commit | 94cd792b9247b6208d12f9722fa4aa74ae673772 (patch) | |
| tree | 51ce690f0d7bbccd9a714f99b9767dfa88aa7afc /doc/tutorial | |
| parent | 2d85e8f59a59233c83889e74e9e41dbf257c91b5 (diff) | |
| download | rust-94cd792b9247b6208d12f9722fa4aa74ae673772.tar.gz rust-94cd792b9247b6208d12f9722fa4aa74ae673772.zip | |
Fix poor markdown parsing in tutorial-building script
Diffstat (limited to 'doc/tutorial')
| -rw-r--r-- | doc/tutorial/lib/markdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial/lib/markdown.js b/doc/tutorial/lib/markdown.js index 4d3bfaeb77f..a5b1240fc70 100644 --- a/doc/tutorial/lib/markdown.js +++ b/doc/tutorial/lib/markdown.js @@ -820,7 +820,7 @@ Markdown.dialects.Gruber.inline = { // 1 2 3 4 <--- captures var m = text.match( /^\[([\s\S]*?)\][ \t]*\([ \t]*(\S+)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/ ); - if ( m ) { + if ( m && m[1].indexOf("]") == -1 ) { if ( m[2] && m[2][0] == '<' && m[2][m[2].length-1] == '>' ) m[2] = m[2].substring( 1, m[2].length - 1 ); |
