Skip to content

Commit b1ce48d

Browse files
authored
Merge pull request #475 from code-hike/next
✨ Update website ✨
2 parents 0ba0479 + dd36e54 commit b1ce48d

File tree

7 files changed

+27
-15
lines changed

7 files changed

+27
-15
lines changed

packages/codehike/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# codehike
22

3+
## 1.0.4
4+
5+
### Patch Changes
6+
7+
- [#474](https://github.com/code-hike/codehike/pull/474) [`d193364`](https://github.com/code-hike/codehike/commit/d193364129d3d4d18a58469e8f3795d9c4b02863) Thanks [@pomber](https://github.com/pomber)! - Add `color-scheme` to `highlight` result
8+
39
## 1.0.3
410

511
### Patch Changes

packages/codehike/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codehike",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Build rich content websites with Markdown and React",
55
"keywords": [
66
"react",
@@ -53,7 +53,7 @@
5353
"check-exports": "attw --pack ."
5454
},
5555
"dependencies": {
56-
"@code-hike/lighter": "1.0.0",
56+
"@code-hike/lighter": "1.0.1",
5757
"diff": "^5.1.0",
5858
"estree-util-visit": "^2.0.0",
5959
"mdast-util-mdx-jsx": "^3.0.0",

packages/codehike/tests/md-suite/inline-code-highlighted.7.compiled-jsx.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function _createMdxContent(props) {
3030
style: {
3131
color: "#c9d1d9",
3232
background: "#0d1117",
33+
colorScheme: "dark",
3334
},
3435
}}
3536
/>
@@ -59,6 +60,7 @@ function _createMdxContent(props) {
5960
style: {
6061
color: "#c9d1d9",
6162
background: "#0d1117",
63+
colorScheme: "dark",
6264
},
6365
}}
6466
/>
@@ -95,6 +97,7 @@ function _createMdxContent(props) {
9597
style: {
9698
color: "#c9d1d9",
9799
background: "#0d1117",
100+
colorScheme: "dark",
98101
},
99102
}}
100103
/>
@@ -122,6 +125,7 @@ function _createMdxContent(props) {
122125
style: {
123126
color: "#c9d1d9",
124127
background: "#0d1117",
128+
colorScheme: "dark",
125129
},
126130
}}
127131
/>

packages/codehike/tests/md-suite/inline-code-highlighted.9.rendered.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>
2-
<code style="color: #c9d1d9; background: #0d1117">
2+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
33
<span style="color: #ff7b72">var</span>
44
<span style="color: #c9d1d9">x</span>
55
<span style="color: #ff7b72">=</span>
@@ -8,7 +8,7 @@
88
</p>
99
<p>
1010
hello
11-
<code style="color: #c9d1d9; background: #0d1117">
11+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
1212
<span style="color: #c9d1d9">&lt;</span>
1313
<span style="color: #7ee787">div</span>
1414
<span style="color: #79c0ff">class</span>
@@ -22,7 +22,7 @@
2222
</p>
2323
<p>
2424
two lines
25-
<code style="color: #c9d1d9; background: #0d1117">
25+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
2626
<span style="color: #ff7b72">var</span>
2727
<span style="color: #c9d1d9">x</span>
2828
<span style="color: #ff7b72">=</span>
@@ -35,7 +35,7 @@
3535
</p>
3636
<p>
3737
extra meta
38-
<code style="color: #c9d1d9; background: #0d1117">
38+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
3939
<span style="color: #ff7b72">var</span>
4040
<span style="color: #c9d1d9">x</span>
4141
<span style="color: #ff7b72">=</span>

packages/codehike/tests/md-suite/inline-code.9.rendered.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>
2-
<code style="color: #c9d1d9; background: #0d1117">
2+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
33
<span style="color: #ff7b72">var</span>
44
<span style="color: #c9d1d9">x</span>
55
<span style="color: #ff7b72">=</span>
@@ -8,7 +8,7 @@
88
</p>
99
<p>
1010
hello
11-
<code style="color: #c9d1d9; background: #0d1117">
11+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
1212
<span style="color: #c9d1d9">&lt;</span>
1313
<span style="color: #7ee787">div</span>
1414
<span style="color: #79c0ff">class</span>
@@ -22,7 +22,7 @@
2222
</p>
2323
<p>
2424
two lines
25-
<code style="color: #c9d1d9; background: #0d1117">
25+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
2626
<span style="color: #ff7b72">var</span>
2727
<span style="color: #c9d1d9">x</span>
2828
<span style="color: #ff7b72">=</span>
@@ -35,7 +35,7 @@
3535
</p>
3636
<p>
3737
extra meta
38-
<code style="color: #c9d1d9; background: #0d1117">
38+
<code style="color: #c9d1d9; background: #0d1117; color-scheme: dark">
3939
<span style="color: #ff7b72">var</span>
4040
<span style="color: #c9d1d9">x</span>
4141
<span style="color: #ff7b72">=</span>

packages/codehike/tests/md-suite/syntax-highlight.7.compiled-jsx.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function _createMdxContent(props) {
3636
style: {
3737
color: "#c9d1d9",
3838
background: "#0d1117",
39+
colorScheme: "dark",
3940
},
4041
}}
4142
/>
@@ -70,6 +71,7 @@ function _createMdxContent(props) {
7071
style: {
7172
color: "#c9d1d9",
7273
background: "#0d1117",
74+
colorScheme: "dark",
7375
},
7476
},
7577
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)