From 1b5600b0253432160ee28e93b5248c7903b5da59 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 24 May 2020 22:22:06 -0700 Subject: [PATCH] chore: Cleaner Markdown output when exporting docs --- shared/utils/unescape.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/utils/unescape.js b/shared/utils/unescape.js index f9c597aef..842578113 100644 --- a/shared/utils/unescape.js +++ b/shared/utils/unescape.js @@ -1,7 +1,9 @@ // @flow const unescape = (text: string) => { - return text.replace(/\\([\\`*{}[\]()#+\-.!_>])/g, '$1'); + return text + .replace(/\\([\\`*{}[\]()#+\-.!_>])/g, '$1') + .replace(/\n\\\n/g, '\n\n'); }; export default unescape;