Skip to content

Commit 914a162

Browse files
committed
fix jsx syntax highlighting
1 parent 0ca3f76 commit 914a162

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

mod.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ export function render(markdown: string, opts: RenderOptions = {}): string {
8787
"class-name",
8888
"regex",
8989
"regex-delimiter",
90+
"tag",
91+
"attr-name",
92+
"punctuation",
93+
"script-punctuation",
94+
"script",
95+
"plain-text",
9096
],
9197
a: ["anchor"],
9298
svg: ["octicon", "octicon-link"],

style.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style/main.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@
3030
color: var(--color-prettylights-syntax-keyword);
3131
}
3232

33+
&.tag .token.class-name,
34+
&.tag .token.script .token.punctuation {
35+
color: var(--color-prettylights-syntax-storage-modifier-import);
36+
}
37+
3338
&.operator,
3439
&.number,
3540
&.boolean,
3641
&.tag .token.punctuation,
42+
&.tag .token.script .token.script-punctuation,
3743
&.tag .token.attr-name {
3844
color: var(--color-prettylights-syntax-constant);
3945
}
@@ -65,9 +71,5 @@
6571
&.tag .token.tag {
6672
color: var(--color-prettylights-syntax-entity-tag);
6773
}
68-
69-
&.tag .token.class-name {
70-
color: var(--color-prettylights-syntax-storage-modifier-import);
71-
}
7274
}
7375

0 commit comments

Comments
 (0)