Skip to content

Commit

Permalink
Allow "#heading" to work
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Aug 24, 2015
1 parent f7dd8a0 commit 7be298b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Added emoji support (https://github.com/chjj/marked/pull/238)
Added preserveNumbering (https://github.com/chjj/marked/pull/127)
Revert heading change (https://github.com/chjj/marked/issues/201)

# marked

Expand Down
1 change: 0 additions & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ block.normal = merge({}, block);
block.gfm = merge({}, block.normal, {
fences: /^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,
paragraph: /^/,
heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/
});

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

0 comments on commit 7be298b

Please sign in to comment.