1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #512 from LeoLamCY/fix-md-viewer-line-breaks

Fix md viewer line breaks when copying
This commit is contained in:
Kazu Yokomizo
2017-04-29 14:09:23 +09:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ h2 {
padding-bottom: 0.2em;
margin: 1em 0 0.37em;
}
body p {
white-space: normal;
}
`
}

View File

@@ -19,6 +19,7 @@ var md = markdownit({
linkify: true,
html: true,
xhtmlOut: true,
breaks: true,
highlight: function (str, lang) {
if (lang === 'flowchart') {
return `<pre class="flowchart">${str}</pre>`