Advertisement
riking

markdown.dtd

Sep 4th, 2014
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.25 KB | None | 0 0
  1. <!-- DTD for Markdown AST xml files -->
  2.  
  3. <!-- Shorthand expansions for child elements -->
  4. <!ENTITY % leafblocktypes 'hr | atx | setext | indentedblock | fencedblock | htmlblock | linkrefsection | paragraph | blankline'>
  5. <!ENTITY % containerblocktypes 'blockquote | list'>
  6.  
  7. <!ENTITY % inlinetypes '#PCDATA | codespan | em | strong | link | image | autolink | autolinkemail | inlinehtml | hardbreak | softbreak'>
  8. <!ENTITY % blocktypes '%leafblocktypes; | %containerblocktypes;'>
  9.  
  10. <!ENTITY % inlinecontent '((%inlinetypes;)*)'>
  11. <!ENTITY % blockcontent '((%blocktypes;)*)'>
  12.  
  13. <!ENTITY % linklabelcontent '((#PCDATA | codespan | autolink | inlinehtml | linklabel)*)'>
  14.  
  15. <!-- Document -->
  16.  
  17. <!ELEMENT document (%blockcontent;)>
  18.  
  19. <!-- Block Elements -->
  20.  
  21. <!ELEMENT hr EMPTY>
  22.  
  23. <!ELEMENT atx (%inlinecontent;)>
  24. <!ATTLIST atx
  25.        level       (1|2|3|4|5|6)   #REQUIRED>
  26.  
  27. <!ELEMENT setext (%inlinecontent;)>
  28. <!ATTLIST setext
  29.        level       (1|2)           #REQUIRED>
  30.  
  31. <!ELEMENT indentedblock (#PCDATA)>
  32.  
  33. <!ELEMENT fencedblock (#PCDATA)>
  34. <!ATTLIST fencedblock
  35.        infostring  CDATA           #IMPLIED>
  36.  
  37. <!ELEMENT htmlblock (#PCDATA)>
  38.  
  39. <!ELEMENT linkrefsection (linkref+)>
  40.  
  41. <!ELEMENT paragraph (%inlinecontent;)>
  42.  
  43. <!ELEMENT blockquote (%blockcontent;)>
  44.  
  45. <!ELEMENT list (listitem+)>
  46. <!ATTLIST list
  47.        type        (bullet|ordered) #REQUIRED
  48.        start       CDATA           #IMPLIED>
  49.  
  50. <!-- Inline Elements -->
  51.  
  52. <!ELEMENT codespan (#PCDATA)>
  53.  
  54. <!ELEMENT em (%inlinecontent;)>
  55. <!ELEMENT strong (%inlinecontent;)>
  56.  
  57. <!ELEMENT link (linklabel, (linkdata | linklabel | collapsedref | shortcutref))>
  58.  
  59. <!ELEMENT image (linklabel, (linkdata | linklabel | collapsedref | shortcutref))>
  60.  
  61. <!ELEMENT autolink (#PCDATA)>
  62. <!ELEMENT autolinkemail (#PCDATA)>
  63.  
  64. <!ELEMENT inlinehtml (#PCDATA)>
  65.  
  66. <!ELEMENT hardbreak EMPTY>
  67. <!ELEMENT softbreak EMPTY>
  68.  
  69. <!-- Supporting Data Elements -->
  70.  
  71. <!--   Lists -->
  72. <!ELEMENT listitem (%blockcontent;)>
  73.  
  74. <!--   Links -->
  75. <!ELEMENT linkref (linklabel, linkdata)>
  76.  
  77. <!ELEMENT linklabel (%linklabelcontent;)>
  78.  
  79. <!ELEMENT linkdata EMPTY>
  80. <!ATTLIST linkdata
  81.        href        CDATA           #REQUIRED
  82.        title       CDATA           #IMPLIED>
  83.  
  84. <!ELEMENT collapsedref EMPTY>
  85. <!ELEMENT shortcutref EMPTY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement