From cc81e402617a00a4812b04d7afb77901001e9dfc Mon Sep 17 00:00:00 2001 From: jasongao97 Date: Sun, 17 Sep 2023 14:58:11 +0800 Subject: [PATCH] remove `div.chapter-opening-figure` on website --- gatsby/lib/parse-content.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gatsby/lib/parse-content.mjs b/gatsby/lib/parse-content.mjs index 24776000..5d14737b 100644 --- a/gatsby/lib/parse-content.mjs +++ b/gatsby/lib/parse-content.mjs @@ -15,7 +15,8 @@ export function parseContent(html) { if ( node.properties.className && Array.isArray(node.properties.className) && - node.properties.className.includes('pdf-only') + (node.properties.className.includes('pdf-only') || + node.properties.className.includes('chapter-opening-figure')) ) { remove(tree, node); }