-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
The following does not use shell highlighting:
<highlightjs language="shell" code="#include <iostream>"></highlightjs>
Instead, it autodetects cpp and uses that, even though "shell" was explicitly provided. It is possible to force autodetect off but I don't think that's supposed to be required:
<highlightjs :autodetect="false" language="shell" code="#include <iostream>"></highlightjs>
See this fiddle https://jsfiddle.net/5nvhra3p/ for a live example.
I think there's a logic error in vue.ts
:
const autodetect = computed(() => props.autodetect || !language.value)
I think this should be:
const autodetect = computed(() => props.autodetect && !language.value)
Metadata
Metadata
Assignees
Labels
No labels