@@ -139,7 +139,7 @@ ruleTester.run("no-missing-link-fragments", rule, {
139
139
140
140
// Headings with inline Markdown formatting
141
141
dedent `
142
- # Heading with \`inline code\`
142
+ # Heading with \\\ `inline code\\ \`
143
143
[Link](#heading-with-inline-code)
144
144
145
145
# Heading with *italic text*
@@ -159,21 +159,27 @@ ruleTester.run("no-missing-link-fragments", rule, {
159
159
` ,
160
160
161
161
// Headings with emojis and accented characters
162
- dedent `
162
+ // This test case is skipped for non-Node environments like Bun
163
+ ...( typeof process !== "undefined" && process . release . name === "node"
164
+ ? [
165
+ dedent `
163
166
# Heading with 🚀 emoji
164
167
[Link](#heading-with--emoji)
165
168
166
169
# Héading with àccènt chàrâctérs
167
170
[Link](#héading-with-àccènt-chàrâctérs)
168
171
169
- # Mix: _Héading_ with 🚀 & \`code\`
172
+ # Mix: _Héading_ with 🚀 & \\\ `code\\ \`
170
173
[Link](#mix-héading-with---code)
171
174
` ,
175
+ ]
176
+ : [ ] ) ,
172
177
173
178
{
174
- code : '<div id="HtmlCaseCheck"></div>\n[Link](#htmlcasecheck)' ,
179
+ code : '<div id="HtmlCaseCheck"></div>\\ n[Link](#htmlcasecheck)' ,
175
180
options : [ { ignoreCase : true } ] ,
176
181
} ,
182
+
177
183
// Valid: HTML ID inside comment is ignored, link to valid ID still works
178
184
dedent `
179
185
<!-- <div id="commented-out"></div> -->
0 commit comments