Skip to content

Commit d090484

Browse files
committedMar 19, 2025·
fix: broken custom highlighter
closes #352
1 parent 3853b10 commit d090484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/templates/mdc-highlighter.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export async function mdcHighlighter({
103103
if (options.highlighter === 'custom') {
104104
return [
105105
'import { getMdcConfigs } from \'#mdc-configs\'',
106-
`export default function (...args) {
107-
' const configs = await getMdcConfigs()`,
106+
'export default async function (...args) {',
107+
' const configs = await getMdcConfigs()',
108108
' for (const config of configs) {',
109109
' if (config.highlighter) {',
110110
' return config.highlighter(...args)',

0 commit comments

Comments
 (0)
Please sign in to comment.