Skip to content

Commit

Permalink
Merge pull request #468 from nature-of-code/fix/remove-opening-figure
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongao97 authored Sep 17, 2023
2 parents fee67e7 + cc81e40 commit cd04cdc
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 cd04cdc

Please sign in to comment.