7
7
** mdast** is a specification for representing Markdown in a [ syntax
8
8
tree] [ syntax-tree ] .
9
9
It implements the [ ** unist** ] [ unist ] spec.
10
- It can represent several flavours of [ Markdown] [ ] , such as [ CommonMark] [ ] ,
11
- and [ GitHub Flavored Markdown] [ gfm ] extensions .
10
+ It can represent several flavours of [ Markdown] [ ] , such as [ CommonMark] [ ]
11
+ and [ GitHub Flavored Markdown] [ gfm ] .
12
12
13
13
This document may not be released.
14
14
See [ releases] [ ] for released documents.
@@ -918,7 +918,7 @@ nodes with similar characteristics together.
918
918
919
919
``` idl
920
920
type FlowContent =
921
- Blockquote | Code | Content | Heading | HTML | List | ThematicBreak
921
+ Blockquote | Code | Heading | HTML | List | ThematicBreak | Content
922
922
```
923
923
924
924
** Flow** content represent the sections of document.
@@ -931,9 +931,6 @@ type Content = Definition | Paragraph
931
931
932
932
** Content** represents runs of text that form definitions and paragraphs.
933
933
934
- If a paragraph is present, it must be limited to one node and can only exist as
935
- a [ * tail* ] [ term-tail ] .
936
-
937
934
### ` ListContent `
938
935
939
936
``` idl
@@ -954,17 +951,16 @@ type PhrasingContent = Link | LinkReference | StaticPhrasingContent
954
951
955
952
``` idl
956
953
type StaticPhrasingContent =
957
- Text | Emphasis | Strong | HTML | InlineCode | Break | Image |
958
- ImageReference
954
+ Break | Emphasis | HTML | Image | ImageReference | InlineCode | Strong | Text
959
955
```
960
956
961
957
** StaticPhrasing** content represent the text in a document, and its
962
958
markup, that is not intended for user interaction.
963
959
964
960
### ` TransparentContent `
965
961
966
- The content model of a transparent node is derived from its [ parent ] [ dfn-parent ]
967
- node .
962
+ The ** transparent ** content model is derived from the content model of its
963
+ [ parent ] [ dfn-parent ] .
968
964
Effectively, this is used to prohibit nested links (and link references).
969
965
970
966
## Extensions
@@ -1108,7 +1104,7 @@ accurate or no longer relevant.
1108
1104
1109
1105
** Delete** can be used where [ ** phrasing** ] [ dfn-phrasing-content ] content is
1110
1106
expected.
1111
- Its content model is also [ ** transparent** ] [ dfn-transparent-content ] content.
1107
+ Its content model is [ ** transparent** ] [ dfn-transparent-content ] content.
1112
1108
1113
1109
For example, the following Markdown:
1114
1110
@@ -1594,8 +1590,6 @@ projects!
1594
1590
1595
1591
[ term-head ] : https://github.com/syntax-tree/unist#head
1596
1592
1597
- [ term-tail ] : https://github.com/syntax-tree/unist#tail
1598
-
1599
1593
[ dfn-mxn-resource ] : #resource
1600
1594
1601
1595
[ dfn-mxn-association ] : #association
0 commit comments