Skip to content

Commit

Permalink
Merge pull request #110 from vwal/fix-github-header-rendering
Browse files Browse the repository at this point in the history
Fixed the header rendering to match that of GFM
  • Loading branch information
maxkueng authored Nov 26, 2017
2 parents bb46e24 + 73a4a60 commit 4fdedbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/render-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function gemojiToImages() {
}

function fixHeadings() {
const reg = /^([#]+)\s?(.+)$/;
const reg = /^([#]+)\s(.+)$/;

return function transformer(tree) {
visit(tree, 'paragraph', (node, nodeIndex, parent) => {
Expand Down

0 comments on commit 4fdedbf

Please sign in to comment.