Skip to content

Commit

Permalink
fix json syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Oct 25, 2021
1 parent 914a162 commit 9779000
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions example/content.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
```json
{
"json": {
"name": "Deno"
}
}
```

# Deno

[![Build Status - Cirrus][]][Build status] [![Twitter handle][]][Twitter badge]
Expand Down
1 change: 1 addition & 0 deletions example/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "https://esm.sh/prismjs@1.25.0/components/prism-typescript?no-check";
import "https://esm.sh/prismjs@1.25.0/components/prism-tsx?no-check";
import "https://esm.sh/prismjs@1.25.0/components/prism-bash?no-check";
import "https://esm.sh/prismjs@1.25.0/components/prism-powershell?no-check";
import "https://esm.sh/prismjs@1.25.0/components/prism-json?no-check";

const CONTENT_PATH = new URL("./content.md", import.meta.url);

Expand Down
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function render(markdown: string, opts: RenderOptions = {}): string {
"script-punctuation",
"script",
"plain-text",
"property",
],
a: ["anchor"],
svg: ["octicon", "octicon-link"],
Expand Down
2 changes: 1 addition & 1 deletion style.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
color: var(--color-prettylights-syntax-constant);
}

&.tag .token.tag {
&.tag .token.tag, &.property {
color: var(--color-prettylights-syntax-entity-tag);
}
}
Expand Down

0 comments on commit 9779000

Please sign in to comment.