We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b4d6b8 commit c910cc1Copy full SHA for c910cc1
server/utils/readme.ts
@@ -689,9 +689,9 @@ ${html}
689
allowedSchemes: ['http', 'https', 'mailto'],
690
// disallow styles other than the ones shiki emits
691
allowedStyles: {
692
- 'span': {
693
- 'color': [/^#[0-9a-fA-F]{3,8}$/],
694
- '--shiki-light': [/^#[0-9a-fA-F]{3,8}$/],
+ span: {
+ 'color': [/^#[0-9a-f]{3,8}$/i],
+ '--shiki-light': [/^#[0-9a-f]{3,8}$/i],
695
},
696
697
// Transform img src URLs (GitHub blob → raw, relative → GitHub raw)
0 commit comments