mirror of https://github.com/keeweb/keeweb.git
fix #1762: line breaks in Markdown notes
This commit is contained in:
parent
9cfbd24b76
commit
8ba147f52f
|
@ -17,7 +17,7 @@ const MdToHtml = {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
const renderer = new MdRenderer();
|
const renderer = new MdRenderer();
|
||||||
const html = marked(md, { renderer });
|
const html = marked(md, { renderer, breaks: true });
|
||||||
const htmlWithoutLineBreaks = html.replace(whiteSpaceRegex, '');
|
const htmlWithoutLineBreaks = html.replace(whiteSpaceRegex, '');
|
||||||
const mdWithoutLineBreaks = md.replace(whiteSpaceRegex, '');
|
const mdWithoutLineBreaks = md.replace(whiteSpaceRegex, '');
|
||||||
if (htmlWithoutLineBreaks === mdWithoutLineBreaks) {
|
if (htmlWithoutLineBreaks === mdWithoutLineBreaks) {
|
||||||
|
|
|
@ -5,7 +5,9 @@ Release notes
|
||||||
`+` optimized memory consumption for large files
|
`+` optimized memory consumption for large files
|
||||||
`+` opening XML and CSV files using the Open button
|
`+` opening XML and CSV files using the Open button
|
||||||
`-` ykman v4 support
|
`-` ykman v4 support
|
||||||
`-` setting expire date in the past
|
`-` setting expiry date in the past
|
||||||
|
`-` legacy auto-type removed
|
||||||
|
`-` fix #1762: line breaks in Markdown notes
|
||||||
|
|
||||||
##### v1.17.4 (2021-03-18)
|
##### v1.17.4 (2021-03-18)
|
||||||
`-` fix #1740: Windows updater issues
|
`-` fix #1740: Windows updater issues
|
||||||
|
|
Loading…
Reference in New Issue