8000 Update vue plugin to match improved highlight api (#4) · highlightjs/vue-plugin@3785c41 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3785c41

Browse files
authored
Update vue plugin to match improved highlight api (#4)
highlightjs/highlight.js#2277
1 parent d20c243 commit 3785c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Component = {
3232
result = hljs.highlightAuto(this.code);
3333
this.detectedLanguage = result.language;
3434
} else {
35-
result = hljs.highlight(this.language, this.code, this.ignoreIllegals);
35+
result = hljs.highlight(this.code, { language: this.language, ignoreIllegals: this.ignoreIllegals });
3636
this.detectedLanguage = this.language;
3737
}
3838
return result.value;

0 commit comments

Comments
 (0)
0