File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,15 @@ export default defineConfig({
3939 syntaxHighlight : 'shiki' ,
4040 shikiConfig : {
4141 themes : {
42- light : bootstrapLight ,
43- dark : bootstrapDark
42+ light : { ... bootstrapLight , name : '' } ,
43+ dark : { ... bootstrapDark , name : '' }
4444 } ,
4545 transformers : [
4646 transformerNotationDiff ( ) ,
4747 transformerNotationHighlight ( ) ,
4848 {
4949 name : 'add-language-attribute' ,
5050 pre ( node ) {
51- // Add data-language attribute to pre tag so Code component can access it
5251 const lang = this . options . lang
5352 if ( lang ) {
5453 node . properties [ 'dataLanguage' ] = lang
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ export async function highlightCode(
5555 const highlighted = await codeToHtml ( code , {
5656 lang,
5757 themes : {
58- light : bootstrapLight as any ,
59- dark : bootstrapDark as any
58+ light : { ... ( bootstrapLight as any ) , name : '' } ,
59+ dark : { ... ( bootstrapDark as any ) , name : '' }
6060 } ,
6161 transformers
6262 } )
You can’t perform that action at this time.
0 commit comments