We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb9f68e commit 4b82268Copy full SHA for 4b82268
1 file changed
trainingportal/util.js
@@ -105,6 +105,9 @@ exports.parseMarkdown = (text) => {
105
let html = markdown.toHTML(text);
106
//made code tag non bindable by angular
107
html = html.replace(/<code/g,"<code ng-non-bindable ");
108
+
109
+ //Keep explicit newlines in markdown written as `<br>`
110
+ html = html.replace(/<br>/g,"<br>");
111
return html
112
}
113
0 commit comments