Skip to content

Commit 98e02e9

Browse files
committed
Improve HighlightJs module
1 parent 0ea486c commit 98e02e9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

common/HighlightJs.re

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,8 @@ let renderHLJS =
3737

3838
let dark = darkmode ? "dark" : "";
3939

40-
ReactDOMRe.createElementVariadic(
41-
"code",
42-
~props=
43-
ReactDOMRe.objToDOMProps({
44-
"className": "hljs lang-" ++ lang ++ " " ++ dark,
45-
"dangerouslySetInnerHTML": {
46-
"__html": highlighted,
47-
},
48-
}),
49-
[||],
50-
);
40+
<code
41+
className={"hljs lang-" ++ lang ++ " " ++ dark}
42+
dangerouslySetInnerHTML={"__html": highlighted}
43+
/>;
5144
};

0 commit comments

Comments
 (0)