Skip to content

Commit

Permalink
feat: support lang on the meta (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd authored Oct 28, 2023
1 parent c70e262 commit f0e6bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shikiji/src/core/renderer-hast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export function tokensToHast(
class: `shiki ${options.themeName || ''}`,
style: options.rootStyle || `background-color:${options.bg};color:${options.fg}`,
tabindex: '0',
lang: options.lang,
},
children: [],
}
Expand Down

0 comments on commit f0e6bc0

Please sign in to comment.