fix #1762: line breaks in Markdown notes

This commit is contained in:
antelle 2021-03-24 17:02:05 +01:00
parent 9cfbd24b76
commit 8ba147f52f
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const MdToHtml = {
return '';
}
const renderer = new MdRenderer();
const html = marked(md, { renderer });
const html = marked(md, { renderer, breaks: true });
const htmlWithoutLineBreaks = html.replace(whiteSpaceRegex, '');
const mdWithoutLineBreaks = md.replace(whiteSpaceRegex, '');
if (htmlWithoutLineBreaks === mdWithoutLineBreaks) {

View File

@ -5,7 +5,9 @@ Release notes
`+` optimized memory consumption for large files
`+` opening XML and CSV files using the Open button
`-` 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)
`-` fix #1740: Windows updater issues