We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63dfeea commit 5c4ed04Copy full SHA for 5c4ed04
src/components/EditorContent/index.jsx
@@ -8,6 +8,7 @@ import { createRoot } from "react-dom/client";
8
9
import { EDITOR_SIZES } from "src/common/constants";
10
import "src/styles/editor/editor-content.scss";
11
+import { removeEmptyTags } from "utils";
12
13
import {
14
EDITOR_CONTENT_CLASS_NAME,
@@ -34,7 +35,7 @@ const EditorContent = ({
34
35
const editorContentRef = useRef(null);
36
37
const htmlContent = substituteVariables(
- applySyntaxHighlightingAndLineNumbers(content),
38
+ applySyntaxHighlightingAndLineNumbers(removeEmptyTags(content)),
39
variables
40
);
41
const sanitize = DOMPurify.sanitize;
0 commit comments