Treat newline as neweline (#261)

* Treat newline as neweline

* Update changelog
This commit is contained in:
Sung Won Cho 2019-10-02 16:34:55 +08:00 committed by GitHub
commit 97ff614ab9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 41 deletions

View file

@ -22,6 +22,7 @@ import hljs from 'highlight.js';
const md = markdown({
html: true,
linkify: true,
breaks: true,
highlight: (str, lang) => {
if (lang && hljs.getLanguage(lang)) {
return hljs.highlight(lang, str).value;