We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dcce02 commit ea197c5Copy full SHA for ea197c5
src/components/common/MarkdownRender.tsx
@@ -156,16 +156,18 @@ const MarkdownRender: React.FC<MarkdownRenderProps> = ({
156
}) => {
157
const [html, setHtml] = useState(
158
ssrEnabled
159
- ? remark()
160
- .use(breaks)
161
- .use(prismPlugin)
162
- .use(htmlPlugin, {
163
- sanitize: true,
164
- })
165
- .use(embedPlugin)
166
- .use(slug)
167
- .processSync(markdown)
168
- .toString()
+ ? filter(
+ remark()
+ .use(breaks)
+ .use(prismPlugin)
+ .use(htmlPlugin, {
+ sanitize: true,
+ })
+ .use(embedPlugin)
+ .use(slug)
+ .processSync(markdown)
169
+ .toString(),
170
+ )
171
: '',
172
);
173
0 commit comments