Skip to content

Commit

Permalink
fix prism
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Nov 21, 2024
1 parent a1da251 commit dce90bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,12 @@ site.process([".html"], (pages) => {
const document = page.document!;
if (!document.querySelector(".ddoc")) {
document.body.classList.add("apply-prism");
document.querySelectorAll("body.apply-prism pre code").forEach((
element,
) => Prism.highlightElement(element));
}
}
});
site.use(
prism({
cssSelector: "body.apply-prism pre code",
}),
);

site.use(toc({ anchor: false }));
site.use(title());
Expand Down
1 change: 1 addition & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dce90bf

Please sign in to comment.