Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7205995

Browse files
committed
Remove unused function arguments
1 parent 1d70045 commit 7205995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/editor/serialize.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ export function htmlSerializeIfNeeded(model: EditorModel, {forceHTML = false} =
128128
// since maths delimiters are handled before Markdown,
129129
// code blocks could contain mangled content.
130130
// replace code blocks with original content
131-
phtml('code').contents('div, span').each(function(i) {
132-
const origData = phtmlOrig('code').contents('div, span')[i].data;
133-
phtml('code').contents('div, span')[i].data = origData;
131+
phtml('code').contents().each(function(i) {
132+
const origData = phtmlOrig('code').contents()[i].data;
133+
phtml('code').contents()[i].data = origData;
134134
});
135135

136136
// add fallback output for latex math, which should not be interpreted as markdown

0 commit comments

Comments
 (0)