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 d620fe7 commit f3a480eCopy full SHA for f3a480e
src/extensions/yfm/YfmHtmlBlock/index.ts
@@ -9,11 +9,13 @@ import {addYfmHtmlBlock} from './actions';
9
10
export type YfmHtmlBlockOptions = {
11
useConfig?: () => IHTMLIFrameElementConfig | undefined;
12
+ sanitize?: (dirtyHtml: string) => string;
13
};
14
15
export const YfmHtmlBlock: ExtensionAuto<YfmHtmlBlockOptions> = (builder, options) => {
16
builder.use(YfmHtmlBlockSpecs, {
17
nodeView: YfmHtmlBlockNodeViewFactory(options),
18
+ sanitize: options.sanitize,
19
});
20
21
builder.addAction(YfmHtmlBlockAction, () => addYfmHtmlBlock);
0 commit comments