From a2f96422382373a1d9ab623465dc420e3abc3964 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 22 Oct 2021 11:45:37 -0500 Subject: [PATCH] Use underscores for em text in Rich editor This fixes an issue where mixing strong and em text caused the text to not render correctly as a post (e.g. *This is **bold text**.* would fail). --- prose/markdownSerializer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prose/markdownSerializer.js b/prose/markdownSerializer.js index 6ccf6bc..685703c 100644 --- a/prose/markdownSerializer.js +++ b/prose/markdownSerializer.js @@ -92,8 +92,8 @@ export const writeFreelyMarkdownSerializer = new MarkdownSerializer( }, { em: { - open: "*", - close: "*", + open: "_", + close: "_", mixable: true, expelEnclosingWhitespace: true, },