Skip to content

Commit 3fe20c4

Browse files
fix: missing selector (#31)
- close #30
1 parent 8e12d54 commit 3fe20c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/highlight-js.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class HighlightJsDirective implements AfterViewInit, OnDestroy {
7070
if (isSimple) {
7171
hljs.highlightElement(this.codeEl);
7272
} else {
73-
this.codeEl.querySelectorAll<HTMLElement>('pre code').forEach((block) => {
73+
this.codeEl.querySelectorAll<HTMLElement>(this.options()?.cssSelector ?? 'pre code').forEach((block) => {
7474
hljs.highlightElement(block);
7575
});
7676
}

0 commit comments

Comments
 (0)