rn-shiki 0.0.37-17 → 0.0.37-18
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -47,8 +47,7 @@ const SyntaxHighlighter: React.FC<SyntaxHighlighterProps> = ({ text, language, l
|
|
47
47
|
fontFamily: monospaceFont,
|
48
48
|
},
|
49
49
|
...(token.color && { color: token.color }),
|
50
|
-
...(token.fontStyle
|
51
|
-
...(token.fontStyle === 'bold' ? [{ fontWeight: 'bold' }] : []),
|
50
|
+
...(token.fontStyle && { fontStyle: token.fontStyle }),
|
52
51
|
])
|
53
52
|
|
54
53
|
console.log(`Rendering token: ${token.content}, styles:`, combinedStyles)
|