rn-shiki 0.0.37-18 → 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,9 +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 && { fontStyle: token.fontStyle }),
|
51
52
|
])
|
52
53
|
|
53
54
|
console.log(`Rendering token: ${token.content}, styles:`, combinedStyles)
|