|
106 | 106 | * [*Uranus*][] is the seventh planet from the Sun. |
107 | 107 | * |
108 | 108 | * [Neptune][neptune][more] is the eighth and farthest planet from the Sun. |
| 109 | + * |
109 | 110 | * @example |
110 | 111 | * {"label": "output", "name": "not-ok.md"} |
111 | 112 | * |
|
148 | 149 | * 1:8-1:18: Unexpected reference to undefined definition, expected corresponding definition (`mercury`) for a footnote or escaped opening bracket (`\[`) for regular text |
149 | 150 | * |
150 | 151 | * @example |
| 152 | + * {"gfm": true, "label": "input", "name": "gfm-table.md"} |
| 153 | + * |
| 154 | + * | [Planet] | [Radius] | |
| 155 | + * | ----------------- | --------- | |
| 156 | + * | [Mercury] | 2439.7 km | |
| 157 | + * |
| 158 | + * [planet]: https://example.com/planet/ |
| 159 | + * |
| 160 | + * @example |
| 161 | + * {"gfm": true, "label": "output", "name": "gfm-table.md"} |
| 162 | + * |
| 163 | + * 1:23-1:31: Unexpected reference to undefined definition, expected corresponding definition (`radius`) for a link or escaped opening bracket (`\[`) for regular text |
| 164 | + * 3:3-3:12: Unexpected reference to undefined definition, expected corresponding definition (`mercury`) for a link or escaped opening bracket (`\[`) for regular text |
| 165 | + * |
| 166 | + * @example |
151 | 167 | * {"config": {"allowShortcutLink": true}, "label": "input", "name": "allow-shortcut-link.md"} |
152 | 168 | * |
153 | 169 | * [Mercury] is the first planet from the Sun and the smallest in the Solar |
@@ -244,7 +260,11 @@ const remarkLintNoUndefinedReferences = lintRule( |
244 | 260 | footnoteDefinitionIdentifiers.add(normalizeIdentifier(node.identifier)) |
245 | 261 | } |
246 | 262 |
|
247 | | - if (node.type === 'heading' || node.type === 'paragraph') { |
| 263 | + if ( |
| 264 | + node.type === 'heading' || |
| 265 | + node.type === 'paragraph' || |
| 266 | + node.type === 'tableCell' |
| 267 | + ) { |
248 | 268 | phrasingStacks.push([...parents, node]) |
249 | 269 | } |
250 | 270 | }) |
|
0 commit comments