File tree Expand file tree Collapse file tree
v1/lib/server/__tests__/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,42 @@ const testStr = \`\`;
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+
5187exports [` replaceAssetsLink does not transform document without valid assets link 1` ] = `
5288"
5389### Existing Docs
You can’t perform that action at this time.
0 commit comments