Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpg619 committed Sep 11, 2024
1 parent aa70ee8 commit aedbe5a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,16 @@ function Code({className = '', prompt, children}) {
{tokens.map((line, i) => (
<Box key={i} {...getLineProps({line, key: i})}>
{line.map((token, key) => (
<MonoText
key={key}
{...{
...getTokenProps({ token, key }),
style: getTokenProps({ token, key }).className === 'token comment'
? { ...getTokenProps({ token, key }).style, color: '#747459' }
: getTokenProps({ token, key }).style
}} />
<MonoText
key={key}
{...{
...getTokenProps({token, key}),
style:
getTokenProps({token, key}).className === 'token comment'
? {...getTokenProps({token, key}).style, color: '#747459'}
: getTokenProps({token, key}).style,
}}
/>
))}
</Box>
))}
Expand Down

0 comments on commit aedbe5a

Please sign in to comment.