Skip to content

Commit

Permalink
fix(code block): use div instead of span (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Feb 7, 2023
1 parent ee83de8 commit 246bad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/transformers/shiki/highlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const useShikiHighlighter = createSingleton((opts?: Exclude<ModuleOptions

return lines.map((line, lineIndex) => ({
type: 'element',
tag: 'span',
tag: 'div',
props: { class: ['line', highlights.includes(lineIndex + 1) ? 'highlight' : ''].join(' ').trim() },
children: line.map(tokenSpan)
}))
Expand Down

0 comments on commit 246bad9

Please sign in to comment.