Skip to content

Commit d7370ca

Browse files
committed
Commit snapshot?
1 parent 22c02f3 commit d7370ca

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

v1/lib/server/__tests__/__snapshots__/docs.test.js.snap

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,42 @@ const testStr = \`![image3](assets/image3.gif)\`;
4848
\`\`\`"
4949
`;
5050

51+
exports[`mdToHtmlify transforms reference links 1`] = `
52+
"
53+
### Existing Docs
54+
55+
- [doc1][doc1]
56+
- [doc2][doc2]
57+
58+
### Non-existing Docs
59+
60+
- [hahaha][hahaha]
61+
62+
## Repeating Docs
63+
64+
- [doc1][doc1]
65+
- [doc2][doc2]
66+
67+
## Do not replace this
68+
\`\`\`md
69+
![image1][image1]
70+
\`\`\`
71+
72+
\`\`\`js
73+
const doc1 = foo();
74+
console.log(\\"[image2][image2]\\");
75+
const testStr = \`![image3][image3]\`;
76+
\`\`\`
77+
78+
[doc1]: /docs/en/next/doc1
79+
[doc2]: /docs/en/next/doc2
80+
[hahaha]: hahaha.md
81+
[image1]: assets/image1.png
82+
[image2]: assets/image2.jpg
83+
[image3]: assets/image3.gif
84+
"
85+
`;
86+
5187
exports[`replaceAssetsLink does not transform document without valid assets link 1`] = `
5288
"
5389
### Existing Docs

0 commit comments

Comments
 (0)