From a21aab99bc8b5147a5bdcab280a598dff19be40d Mon Sep 17 00:00:00 2001 From: Arturo Linares Date: Fri, 30 Jul 2021 00:25:52 -0500 Subject: [PATCH] Fix alert spacing too. --- src/lib/components/LocalEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/LocalEditor.js b/src/lib/components/LocalEditor.js index f0ee63b..e247052 100644 --- a/src/lib/components/LocalEditor.js +++ b/src/lib/components/LocalEditor.js @@ -57,7 +57,7 @@ export default class LocalEditor extends React.Component { updateMarkdown() { let markdown = this.state.note.content.text - .replace(/(\n{2})(\n+)(?!---)/g, (m, p, q) => p + q.replace(/(\n)/g, '\\$1')); + .replace(/(\n{2})(\n+)(?!:::)(?!---)/g, (m, p, q) => p + q.replace(/(\n)/g, '\\$1')); if (markdown === "") { markdown = "\n"; }