-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markdown.heading missing in VS Code theme #36
Comments
Thank you for your response. I noticed that the issue seemed specific to Quarto markdown files. After experimenting, I was able to get the desired formatting by adding the following to the theme's JSON: {
"scope": "markup.heading",
"settings": {
"fontStyle": "bold",
"foreground": "#D0A215"
}
},
{
"scope": [
"punctuation.definition.heading"
],
"settings": {
"foreground": "#CE5D97"
}
} Additionally, defining both To be honest, theme development and TextMate scopes are not my expertise. However, I found it interesting that Quarto(md)-specific elements, although not explicitly defined, still get formatted correctly by using As for the textmate scopes you asked for: |
Yup, you nailed it. I was working on a new theme generator for VSCode yesterday and I can confirm the better defaults you have, the less specificity you need. I reduced the amount of lines from 1200 to 560 approximately, and obtained a similar, or even a better result. I'll be releasing an update on this soon. |
The
![markdown_heading_scope_missing1](https://private-user-images.githubusercontent.com/68426187/274429415-781c40b0-a874-4a03-b06d-31493c4f9d08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNTg1NTAsIm5iZiI6MTcyMTA1ODI1MCwicGF0aCI6Ii82ODQyNjE4Ny8yNzQ0Mjk0MTUtNzgxYzQwYjAtYTg3NC00YTAzLWIwNmQtMzE0OTNjNGY5ZDA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE1NDQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkZmEyNWMzODY2NzE3ZWI1ZWMzY2QxYTFiODhhNGYyNjFlMzM4NDYwNDc2MmVjMDdmMjY1NjZhMWRmMGQ1MGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BR-Gd3lCHo1y_8xKaPb7Skk1zcwWYmv_QBwvQ4X30nY)
markdown.heading
scope appears to be missing from theFlexoki-Dark-color-theme.json
file. When using a markdown heading like# Heading
, the heading is white.I've manually added the
![markdown_heading_scope_missing2](https://private-user-images.githubusercontent.com/68426187/274429428-ab318c3f-2106-49db-b9af-05c652ade98c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNTg1NTAsIm5iZiI6MTcyMTA1ODI1MCwicGF0aCI6Ii82ODQyNjE4Ny8yNzQ0Mjk0MjgtYWIzMThjM2YtMjEwNi00OWRiLWI5YWYtMDVjNjUyYWRlOThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE1NDQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3ODJjMzM4ZTM1ZGMyMGM4MGFhMGFiZWQ3N2IzY2MwZGE5NzAxOGE3ZmNhMzg5ODZkM2NmYzkwNjVmY2E3OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ech--yrk7bfoGOsrIhlatDPBMXwJVNjS_IAqUTA63lQ)
markdown.heading
scope to my JSON file. However, I've noticed that the "#" still remains in the default white color instead of the heading color.The text was updated successfully, but these errors were encountered: