summaryrefslogtreecommitdiff
path: root/CommonMark.dtd
blob: d01b88f61030504936cd3b4d8a3771520ab225bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- DTD for CommonMark xml export format -->
<!ELEMENT document
(block_quote|list|code_block|html|paragraph|header|hrule)*>
<!ELEMENT block_quote
(block_quote|list|code_block|html|paragraph|header|hrule)*>
<!ELEMENT list (item)+>
<!ATTLIST list
          type (bullet|ordered) #REQUIRED
          start CDATA #IMPLIED
          tight (true|false) #REQUIRED
          delimiter (period|paren) #IMPLIED>
<!ELEMENT item
(block_quote|list|code_block|html|paragraph|header|hrule)*>
<!ELEMENT code_block (#PCDATA)>
<!ATTLIST code_block
          xml:space CDATA #FIXED "preserve"
          info CDATA #IMPLIED>
<!ELEMENT html (#PCDATA)>
<!ATTLIST html xml:space CDATA #FIXED "preserve">
<!ELEMENT paragraph
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ELEMENT header
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ATTLIST header level (1|2|3|4|5|6) #REQUIRED>
<!ELEMENT hrule EMPTY>
<!ELEMENT text (#PCDATA)>
<!ELEMENT softbreak EMPTY>
<!ELEMENT linebreak EMPTY>
<!ELEMENT code (#PCDATA)>
<!ATTLIST code xml:space CDATA #FIXED "preserve">
<!ELEMENT inline_html (#PCDATA)>
<!ATTLIST inline_html xml:space CDATA #FIXED "preserve">
<!ELEMENT emph
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ELEMENT strong
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ELEMENT link
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ATTLIST link Url CDATA #REQUIRED>
<!ATTLIST link Title CDATA #IMPLIED>
<!ELEMENT image
(text|softbreak|linebreak|code|inline_html|emph|strong|link|image)*>
<!ATTLIST image url CDATA #REQUIRED>
<!ATTLIST image title CDATA #IMPLIED>
<!ATTLIST ANY sourcepos CDATA #IMPLIED>