Missing italic styles in 0.11?
See original GitHub issueReproduction (https://runkit.com/brc-dd/6309d1529e302e000a926cad):
const shiki_10 = require('shiki@0.10.1')
const shiki_11 = require('shiki')
const h_10 = await shiki_10.getHighlighter({ theme: 'material-palenight' })
const h_11 = await shiki_11.getHighlighter({ theme: 'material-palenight' })
console.log(h_10.codeToHtml(`import foo from 'bar'`, { lang: 'js' }))
console.log(h_11.codeToHtml(`import foo from 'bar'`, { lang: 'js' }))
Output (notice the difference in style of import
and from
):
Is some additional config required to render it like before, or the theme itself has changed?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Font style bold and italic cannot be generated in the pdf file · Issue ...
However, I see a different style in my resume.pdf. No bold and italic fonts are generated in the pdf file. ... Looks like...
Read more >The italic font style option is missing from a layout in ArcGIS Pro
On the ribbon, on the contextual Format tab and in the Text Symbol group, click the Text Symbol Font Style drop-down menu, and...
Read more >@teambit/design.ui.styles.muted-italic | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Plotting — CliMetLab 0.11.13 documentation
Use a predefined style depending on the general theme ... Line style of map grid lines ... Style of the font normal/bold/italic. “normal”,...
Read more >italic, bold, link buttons gone in ff2.0.0.12? | MetaTalk
I have another computer still at 2.0.0.11 which shows the buttons fine. ... Hmm, still missing through a restart firefox/clear cache.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @LaPenna for the test case! This is a tokenization problem and I fixed it by upgrading to
vscode-textmate@7.0.1
.Experiencing the same lack of italics issue.
Interestingly, if I specify
"fontStyle": "bold"
in the theme, then it applies the"font-style: italic"
style.Here are some tests
For simplicity & isolation I used the following stubs as the themes but the same issue occurs when I test with any normal theme that uses italics.