Remove Footnote · syntax-tree/mdast@1376ede (original) (raw)

`` @@ -57,7 +57,6 @@ The latest released version is [4.0.0][latest].

``

57

57

`* Extensions

`

58

58

`* GFM

`

59

59

`* Frontmatter

`

60

``

`-

`

61

60

`* MDX

`

62

61

`* Glossary

`

63

62

`* List of utilities

`

`@@ -1311,51 +1310,6 @@ If frontmatter is present, it must be limited to one node in the

`

1311

1310

`type FlowContentFrontmatter = FrontmatterContent | FlowContent

`

1312

1311

```` ```


`1313`

`1312`

``

`1314`

``

`-

### Footnotes

`

`1315`

``

`-`

`1316`

``

`-

The following interfaces are found with footnotes (pandoc).

`

`1317`

``

`-

Note that pandoc also uses [**FootnoteReference**][dfn-footnote-reference]

`

`1318`

``

`-

and [**FootnoteDefinition**][dfn-footnote-definition], but since

`

`1319`

``

`-

[GFM now supports footnotes][gfm-footnote], their definitions were moved to the

`

`1320`

``

`-

[GFM][gfm-section] section

`

`1321`

``

`-`

`1322`

``

`` -

#### `Footnote`

``

`1323`

``

`-`

`1324`

``

```` -

```idl

1325

``

`-

interface Footnote <: Parent {

`

1326

``

`-

type: 'footnote'

`

1327

``

`-

children: [PhrasingContent]

`

1328

``

`-

}

`

1329

``


```

1330

``

-

1331

``

`-

Footnote ([Parent][dfn-parent]) represents content relating to the

`

1332

``

`-

document that is outside its flow.

`

1333

``

-

1334

``

`-

Footnote can be used where [phrasing][dfn-phrasing-content] content is

`

1335

``

`-

expected.

`

1336

``

`-

Its content model is also [phrasing][dfn-phrasing-content] content.

`

1337

``

-

1338

``

`-

For example, the following markdown:

`

1339

``

-

1340

``


```markdown

1341

``

`-

^[alpha bravo]

`

1342

``


```

1343

``

-

1344

``

`-

Yields:

`

1345

``

-

1346

``


```js

1347

``

`-

{

`

1348

``

`-

type: 'footnote',

`

1349

``

`-

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

`

1350

``

`-

}

`

1351

``


```

1352

``

-

1353

``

`` -

PhrasingContent (footnotes)

``

1354

``

-

1355

``


```idl

1356

``

`-

type PhrasingContentFootnotes = Footnote | PhrasingContent

`

1357

``


```

1358

``

-

1359

1313

`### MDX

`

1360

1314

``

1361

1315

`` See remark-mdx.

``

`@@ -1656,10 +1610,6 @@ projects!

`

1656

1610

``

1657

1611

`[dfn-phrasing-content]: #phrasingcontent

`

1658

1612

``

1659

``

`-

`

1660

``

-

1661

``

`-

`

1662

``

-

1663

1613

`[list-of-utilities]: #list-of-utilities

`

1664

1614

``

1665

1615

`[unist]: https://github.com/syntax-tree/unist

`