diff --git a/src/lib/enhancers/github/github-common.ts b/src/lib/enhancers/github/github-common.ts index 3917aad..b52a06c 100644 --- a/src/lib/enhancers/github/github-common.ts +++ b/src/lib/enhancers/github/github-common.ts @@ -21,8 +21,7 @@ function githubHighlighter(code: string, language?: string) { const result = hljs.highlight(code, { language }) return result.value } else { - const result = hljs.highlightAuto(code) - return result.value + return code } } catch (error) { console.warn('highlight.js highlighting failed:', error)