From 0a663398edd2c2ce56b31272a81fed1ddf1729e7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 23 Sep 2019 14:59:53 +0200 Subject: [PATCH] Use underscore for when doing html > md to be consistent with the format bar, which also uses underscores for italics --- src/editor/deserialize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/deserialize.js b/src/editor/deserialize.js index 925d0d1ab3..1b99d70946 100644 --- a/src/editor/deserialize.js +++ b/src/editor/deserialize.js @@ -90,7 +90,7 @@ function parseElement(n, partCreator, state) { case "BR": return partCreator.newline(); case "EM": - return partCreator.plain(`*${n.textContent}*`); + return partCreator.plain(`_${n.textContent}_`); case "STRONG": return partCreator.plain(`**${n.textContent}**`); case "PRE":