From 0bcf370a41423d484ff3a10be8c2aa8cd13ad757 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 26 Aug 2022 01:46:57 +0100 Subject: [PATCH] feat: allow div class --- src/markdown/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/markdown/index.ts b/src/markdown/index.ts index c58777a5..f6eeec1e 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -43,6 +43,7 @@ export const renderPageContent = async (content: string): Promise => { ...defaultSchema, attributes: { ...defaultSchema.attributes, + div: [...(defaultSchema.attributes?.div || []), ["className"]], code: [["className"]], blockquote: allowedBlockquoteAttrs, },