Use underscore for <em> when doing html > md

to be consistent with the format bar, which also uses underscores for italics
This commit is contained in:
Bruno Windels 2019-09-23 14:59:53 +02:00
parent 133e68191a
commit 0a663398ed

View file

@ -90,7 +90,7 @@ function parseElement(n, partCreator, state) {
case "BR": case "BR":
return partCreator.newline(); return partCreator.newline();
case "EM": case "EM":
return partCreator.plain(`*${n.textContent}*`); return partCreator.plain(`_${n.textContent}_`);
case "STRONG": case "STRONG":
return partCreator.plain(`**${n.textContent}**`); return partCreator.plain(`**${n.textContent}**`);
case "PRE": case "PRE":