1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

fix md viewer line breaks when copying

-set white-space to normal to remove extra space between lines
This commit is contained in:
Leo Lam
2017-04-26 19:37:12 -04:00
parent 941c4aeb19
commit b35953d1f9
2 changed files with 5 additions and 0 deletions

View File

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

View File

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