From 8ba147f52fe2a9bf66150a78d6eea7d04f814197 Mon Sep 17 00:00:00 2001 From: antelle Date: Wed, 24 Mar 2021 17:02:05 +0100 Subject: [PATCH] fix #1762: line breaks in Markdown notes --- app/scripts/util/formatting/md-to-html.js | 2 +- release-notes.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/scripts/util/formatting/md-to-html.js b/app/scripts/util/formatting/md-to-html.js index fdcd0681..90afea95 100644 --- a/app/scripts/util/formatting/md-to-html.js +++ b/app/scripts/util/formatting/md-to-html.js @@ -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) { diff --git a/release-notes.md b/release-notes.md index f52518bd..220a80a1 100644 --- a/release-notes.md +++ b/release-notes.md @@ -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