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