Skip to content

Commit

Permalink
fix: add line placehoder
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 11, 2019
1 parent bf75dc2 commit 71b0e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/markedRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default hooks => {
}
return false
})
const escapedLine = marked.escape(v)
const escapedLine = v ? marked.escape(v) : '​'
return shouldHighlight
? `<span class="code-line highlighted">${escapedLine}</span>`
: `<span class="code-line">${escapedLine}</span>`
Expand Down

0 comments on commit 71b0e24

Please sign in to comment.