Skip to content
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

fix(markdown): Code block fences not colorized #44

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions demos/.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@ This is some plain text.
| a | b | c |
| d | e | f |

Some example paragraph text to make this area not feel so busy. La dee dah bum dee dee bum bum bum
is this thing working?

```toml
[section]
key = "value"
number = 123
object = { key = "value" }
array = ["one", "two", "three"]

# This is a comment

[section.subsection]
property = "value"
```

Some example paragraph text to make this area not feel so busy. La dee dah bum dee dee bum bum bum
is this thing working?

[This is a link](https://example.com)

![This is an image](https://example.com)
Expand Down
19 changes: 17 additions & 2 deletions themes/Clarity Noir-color-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,29 @@
}
},
{
"name": "Code",
"name": "Code > Fenced",
"scope": "markup.fenced_code.block punctuation.definition",
"settings": {
"foreground": "#686868"
}
},
{
"name": "Code > Fenced > Language",
"scope": "markup.fenced_code.block fenced_code.block.language",
"settings": {
"foreground": "#ff5c7a",
"fontStyle": "italic"
}
},
{
"name": "Code > Inline",
"scope": "markup.inline.raw",
"settings": {
"foreground": "#e08300"
}
},
{
"name": "Code > Punctuation",
"name": "Code > Inline > Punctuation",
"scope": "punctuation.definition.raw",
"settings": {
"foreground": "#686868"
Expand Down
Loading