Skip to content

Commit

Permalink
allow matched double quotes in link definition title (markdown.pl beh…
Browse files Browse the repository at this point in the history
…avior).

Test literal_quotes_in_titles now passes.
fixup! c3e0059
  • Loading branch information
Feder1co5oave committed Jan 23, 2018
1 parent 84c330b commit fac31ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/marked.js
Expand Up @@ -29,7 +29,7 @@ var block = {
};

block._label = /(?:\\[\[\]]|[^\[\]])+/;
block._title = /(?:"(?:\\"|[^"])*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/;
block._title = /(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/;
block.def = replace(block.def)
('label', block._label)
('title', block._title)
Expand Down

0 comments on commit fac31ed

Please sign in to comment.