A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/syntax-tree/mdast/commit/1376ede0f9469d27de4dadbd640c54b04d1e2c73 below:

Remove `Footnote` · syntax-tree/mdast@1376ede · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+0

-50

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+0

-50

lines changed Original file line number Diff line number Diff line change

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

57 57

* [Extensions](#extensions)

58 58

* [GFM](#gfm)

59 59

* [Frontmatter](#frontmatter)

60 -

* [Footnotes](#footnotes)

61 60

* [MDX](#mdx)

62 61

* [Glossary](#glossary)

63 62

* [List of utilities](#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`](https://mdxjs.com/packages/remark-mdx/#syntax-tree).

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

1656 1610 1657 1611

[dfn-phrasing-content]: #phrasingcontent

1658 1612 1659 -

[gfm-section]: #gfm

1660 - 1661 -

[gfm-footnote]: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/

1662 - 1663 1613

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

1664 1614 1665 1615

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

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4