mirror of
https://github.com/dnote/dnote
synced 2026-03-17 07:55:50 +01:00
Treat newline as neweline (#261)
* Treat newline as neweline * Update changelog
This commit is contained in:
parent
edfaa3f953
commit
97ff614ab9
4 changed files with 58 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue