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