Skip to content

Commit 0cf0206

Browse files
Update StyledMarkdownPreview.tsx
1 parent 850f662 commit 0cf0206

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

gui/src/components/markdown/StyledMarkdownPreview.tsx

+8-12
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,14 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview(
117117
rehypePlugins: [
118118
rehypeKatex as any,
119119
{},
120-
[
121-
rehypeHighlight as any,
122-
{
123-
// Note: An empty obj is the default behavior, but leaving this here for scaffolding to
124-
// add unsupported languages in the future. We will need to install the `lowlight` package
125-
// to use the `common` language set in addition to unsupported languages.
126-
// https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
127-
// languages: {},
128-
} as Options,
129-
130-
,
131-
],
120+
rehypeHighlight as any,
121+
{
122+
// Note: An empty obj is the default behavior, but leaving this here for scaffolding to
123+
// add unsupported languages in the future. We will need to install the `lowlight` package
124+
// to use the `common` language set in addition to unsupported languages.
125+
// https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
126+
// languages: {},
127+
} as Options,
132128
],
133129
rehypeReactOptions: {
134130
components: {

0 commit comments

Comments
 (0)