Skip to content

Commit c38d722

Browse files
authored
Merge pull request #500 from code-hike/next
✨ Update website ✨
2 parents 4edf769 + d7fa29e commit c38d722

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
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.5
4+
5+
### Patch Changes
6+
7+
- [#499](https://github.com/code-hike/codehike/pull/499) [`360df6e`](https://github.com/code-hike/codehike/commit/360df6e84793bc106350693cabbe06efe170b2e8) Thanks [@pomber](https://github.com/pomber)! - Parse two values separated by a markdown break
8+
39
## 1.0.4
410

511
### Patch Changes

packages/codehike/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codehike",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Build rich content websites with Markdown and React",
55
"keywords": [
66
"react",

packages/codehike/src/mdx/1.1.remark-list-to-section.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ function isImageAndParagraphs(child: any): child is {
216216
return (
217217
(c.type === "image" && c.alt?.startsWith("!")) ||
218218
(c.type === "text" && c.value.trim().startsWith("!")) ||
219-
(c.type === "text" && c.value.trim() === "")
219+
(c.type === "text" && c.value.trim() === "") ||
220+
c.type === "break"
220221
)
221222
})
222223
}

packages/codehike/tests/md-suite/two-ps.0.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ cc
2525
ee ee
2626
ee
2727

28+
!k two-spaces-after-value
29+
!l because-some-use-prettier-proseWrap
30+
2831
## !invalid
2932

3033
ff ff

packages/codehike/tests/md-suite/two-ps.2.before-remark.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
"type": "paragraph",
5757
"children": [{ "type": "text", "value": "!e1 1\r\nee ee\r\nee" }]
5858
},
59+
{
60+
"type": "paragraph",
61+
"children": [
62+
{ "type": "text", "value": "!k two-spaces-after-value" },
63+
{ "type": "break" },
64+
{ "type": "text", "value": "!l because-some-use-prettier-proseWrap" }
65+
]
66+
},
5967
{
6068
"type": "heading",
6169
"depth": 2,

packages/codehike/tests/md-suite/two-ps.8.parsed-jsx.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ jjj
8686
"2",
8787
],
8888
"e1": "1\r\nee ee\r\nee",
89+
"k": "two-spaces-after-value",
90+
"l": "because-some-use-prettier-proseWrap",
8991
"title": "",
9092
},
9193
}

0 commit comments

Comments
 (0)