Skip to content

Commit

Permalink
Update code_highlight.ts
Browse files Browse the repository at this point in the history
Add non-null assertion for highlightjs cssSelector option
  • Loading branch information
philj0st committed Oct 23, 2024
1 parent 6b7e3a9 commit 2a7c71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/code_highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function codeHighlight(userOptions?: Options) {
function processCodeHighlight(pages: Page[]) {
for (const page of pages) {
page.document!.querySelectorAll<HTMLElement>(
options.options.cssSelector,
options.options.cssSelector!,
)
.forEach((element) => {
try {
Expand Down

0 comments on commit 2a7c71e

Please sign in to comment.