Skip to content

Commit dca2cc2

Browse files
authored
Merge branch 'main' into chore/add-details-in-cr-action
2 parents 889b72f + f6e424d commit dca2cc2

File tree

3 files changed

+44
-6
lines changed

3 files changed

+44
-6
lines changed

examples/counter/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"@types/lowlight": "^0.0.7",
1314
"highlight.js": "^11.11.0",
15+
"lowlight": "^3.3.0",
1416
"react": "^18.3.1",
1517
"react-dom": "^18.3.1",
1618
"react-lowlight": "^3.0.1",

examples/counter/pnpm-lock.yaml

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/styles/prism-theme.css

+7-6
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ pre {
3535
}
3636

3737
:not(pre) > code[class*="language-"],
38-
code {
38+
pre[class*="language-"] {
39+
background: #2e3440;
40+
padding: 1em;
41+
}
42+
43+
code:not([class*="language-"]) {
44+
padding: 0.1em 0.3em;
3945
background: #2e3440;
40-
padding: 0.1em;
4146
}
4247

4348
code {
@@ -164,7 +169,3 @@ blockquote {
164169
.important {
165170
border-left: 5px solid #a3be8c;
166171
}
167-
168-
code {
169-
170-
}

0 commit comments

Comments
 (0)