mirror of https://github.com/laurent22/joplin.git
All: Fixes #1033: Handle hard break when rendering Markdown to HTML
parent
982c9828da
commit
f05929cd17
|
@ -311,6 +311,8 @@ class MdToHtml {
|
||||||
output.push(t.content);
|
output.push(t.content);
|
||||||
} else if (t.type === 'softbreak') {
|
} else if (t.type === 'softbreak') {
|
||||||
output.push('<br/>');
|
output.push('<br/>');
|
||||||
|
} else if (t.type === 'hardbreak') {
|
||||||
|
output.push('<br/>');
|
||||||
} else if (t.type === 'hr') {
|
} else if (t.type === 'hr') {
|
||||||
output.push('<hr/>');
|
output.push('<hr/>');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue