Skip to content

Commit

Permalink
address review comment: equivalence of [^\n] and .
Browse files Browse the repository at this point in the history
  • Loading branch information
davisjam committed Apr 26, 2018
1 parent 990b452 commit 5736014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var block = {
fences: noop,
hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
// cap[2] might be ' HEADING # ' and must be trimmed appropriately.
heading: /^ *(#{1,6})([^\n]*)(?:\n+|$)/,
heading: /^ *(#{1,6})(.*)(?:\n+|$)/,
nptable: noop,
blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
Expand Down Expand Up @@ -95,7 +95,7 @@ block.gfm = merge({}, block.normal, {
fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,
paragraph: /^/,
// cap[2] might be ' HEADING # ' and must be trimmed appropriately.
heading: /^ *(#{1,6}) ([^\n]+)(?:\n+|$)/
heading: /^ *(#{1,6}) (.+)(?:\n+|$)/
});

block.gfm.paragraph = edit(block.paragraph)
Expand Down

0 comments on commit 5736014

Please sign in to comment.