Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

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,

Check failure on line 135 in packages/shikiji/src/core/renderer-hast.ts

View workflow job for this annotation

GitHub Actions / typecheck

Property 'lang' does not exist on type 'HtmlRendererOptions'.
},
children: [],
}
Expand Down

1 comment on commit f0e6bc0

@ovflowd
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antfu I guess CI didn't run on that PR, I assume this should be as easy as adding lang: type on HtmlRendererOptions?

Please sign in to comment.