|
@@ -464,10 +464,12 @@ export const generatePreviewOptions = (config: RendererConfig, pagePath: string)
|
|
|
rehypeSanitizePlugin,
|
|
rehypeSanitizePlugin,
|
|
|
katex,
|
|
katex,
|
|
|
);
|
|
);
|
|
|
|
|
+
|
|
|
// add components
|
|
// add components
|
|
|
if (components != null) {
|
|
if (components != null) {
|
|
|
components.lsx = props => <Lsx {...props} />;
|
|
components.lsx = props => <Lsx {...props} />;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (config.isEnabledXssPrevention) {
|
|
if (config.isEnabledXssPrevention) {
|
|
|
verifySanitizePlugin(options, false);
|
|
verifySanitizePlugin(options, false);
|
|
|
}
|
|
}
|