Skip to content

Commit 349e9f9

Browse files
committed
Refactor code.js to add support for function token color
1 parent e6fe620 commit 349e9f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mdx/code.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ function getCustomTokenStyle(tokenProps) {
9898
return {...style, color: '#747458'}
9999
case 'token parameter variable':
100100
return {...style, color: '#277d7b'}
101+
case 'token function':
102+
return {...style, color: '#cf3846'}
101103
default:
102104
return style
103105
}

0 commit comments

Comments
 (0)