Skip to content

Commit e0512c1

Browse files
authored
Merge pull request #393 from konfig-dev/next
add yaml support from "from" annotation
2 parents 8c8c183 + d41e625 commit e0512c1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello: world

packages/mdx/dev/content/external.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ print("not external")
1515
# from ./assets/foo.py
1616
```
1717

18+
```yaml foo.yaml
19+
# from ./assets/foo.yaml
20+
```
21+
1822
<CH.Code>
1923

2024
```js foo.js

packages/mdx/src/remark/comment-data.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const bashLikeLangs = [
7070
"sh",
7171
"shell",
7272
"python",
73+
"yaml",
7374
"py",
7475
]
7576
const bashLikeCommentRegex = /#\s+(\w+)(\S*)\s*(.*)/

0 commit comments

Comments
 (0)