Add label to Association · syntax-tree/mdast@dbb1ede (original) (raw)

`@@ -608,7 +608,7 @@ It has no content model.

`

608

608

`For example, the following markdown:

`

609

609

``

610

610

```` ```markdown


`611`

``

`-

[alpha]: http://example.com

`

``

`611`

`+

[Alpha]: http://example.com

`

`612`

`612`

```` ```

613

613

``

614

614

`Yields:

`

`@@ -617,6 +617,7 @@ Yields:

`

617

617

`{

`

618

618

` type: 'definition',

`

619

619

` identifier: 'alpha',

`

``

620

`+

label: 'Alpha',

`

620

621

` url: 'http://example.com',

`

621

622

` title: null

`

622

623

`}

`

`@@ -658,6 +659,7 @@ Yields:

`

658

659

`{

`

659

660

` type: 'footnoteDefinition',

`

660

661

` identifier: 'alpha',

`

``

662

`+

label: 'alpha',

`

661

663

` children: [{

`

662

664

` type: 'paragraph',

`

663

665

` children: [{type: 'text', value: 'bravo and charlie.'}]

`

`@@ -967,7 +969,7 @@ Its content model is [static phrasing][dfn-static-phrasing-content] content.

`

967

969

`For example, the following markdown:

`

968

970

``

969

971

```` ```markdown


`970`

``

`-

[alpha][bravo]

`

``

`972`

`+

[alpha][Bravo]

`

`971`

`973`

```` ```

972

974

``

973

975

`Yields:

`

`@@ -976,6 +978,7 @@ Yields:

`

976

978

`{

`

977

979

` type: 'linkReference',

`

978

980

` identifier: 'bravo',

`

``

981

`+

label: 'Bravo',

`

979

982

` referenceType: 'full',

`

980

983

` children: [{type: 'text', value: 'alpha'}]

`

981

984

`}

`

`@@ -1016,6 +1019,7 @@ Yields:

`

1016

1019

`{

`

1017

1020

` type: 'imageReference',

`

1018

1021

` identifier: 'bravo',

`

``

1022

`+

label: 'bravo',

`

1019

1023

` referenceType: 'full',

`

1020

1024

` alt: 'alpha'

`

1021

1025

`}

`

`@@ -1085,7 +1089,8 @@ Yields:

`

1085

1089

```` ```javascript


`1086`

`1090`

`{

`

`1087`

`1091`

` type: 'footnoteReference',

`

`1088`

``

`-

identifier: 'alpha'

`

``

`1092`

`+

identifier: 'alpha',

`

``

`1093`

`+

label: 'alpha'

`

`1089`

`1094`

`}

`

`1090`

`1095`

```` ```

1091

1096

``

`@@ -1114,6 +1119,7 @@ appropriate for a tooltip.

`

1114

1119

```` ```idl


`1115`

`1120`

`interface mixin Association {

`

`1116`

`1121`

` identifier: string;

`

``

`1122`

`+

label: string?;

`

`1117`

`1123`

`}

`

`1118`

`1124`

```` ```

1119

1125

``

`@@ -1122,6 +1128,9 @@ interface mixin Association {

`

1122

1128

`` An identifier field must be present.

``

1123

1129

`` It can match an identifier field on another node.

``

1124

1130

``

``

1131

`` +

A label field can be present.

``

``

1132

`` +

It represents the original value of the normalised identifier field.

``

``

1133

+

1125

1134

`` Whether the value of identifier is expected to be a unique identifier or not

``

1126

1135

`depends on the type of node including the Association.

`

1127

1136

`` An example of this is that identifier on [Definition][dfn-definition]

``