Skip to content

Commit

Permalink
remove div.chapter-opening-figure on website
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongao97 committed Sep 17, 2023
1 parent fee67e7 commit cc81e40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby/lib/parse-content.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cc81e40

Please sign in to comment.