File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -291,10 +291,20 @@ interface Footnote <: Parent {
291
291
its ` href ` and ` title ` defined somewhere else in the document by a
292
292
** Definition** .
293
293
294
+ ` referenceType ` is needed to detect if a reference was meant as a
295
+ reference (` [foo][] ` ) or just unescaped brackets (` [foo] ` ).
296
+
294
297
``` idl
295
298
interface LinkReference <: Parent {
296
299
type: "linkReference";
297
300
identifier: string;
301
+ referenceType: referenceType;
302
+ }
303
+ ```
304
+
305
+ ``` idl
306
+ enum referenceType {
307
+ "shortcut" | "collapsed" | "full";
298
308
}
299
309
```
300
310
@@ -304,11 +314,16 @@ interface LinkReference <: Parent {
304
314
its ` src ` and ` title ` defined somewhere else in the document by a
305
315
** Definition** .
306
316
317
+ ` referenceType ` is needed to detect if a reference was meant as a
318
+ reference (` ![foo][] ` ) or just unescaped brackets (` ![foo] ` ).
319
+ See ** LinkReference** for the definition of ` referenceType ` .
320
+
307
321
``` idl
308
322
interface ImageReference <: Node {
309
323
type: "imageReference";
310
- alt: string | null;
311
324
identifier: string;
325
+ referenceType: referenceType;
326
+ alt: string | null;
312
327
}
313
328
```
314
329
You can’t perform that action at this time.
0 commit comments