aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-27 23:25:20 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-27 23:25:20 -0800
commitb6aa0d024aa55d3a122c66998ec6d43f7800ae7f (patch)
tree1b227cea0008b00556c72476321ef9d03d5f3c47
parent7323b9b629fdd4b84dda16ebc604b6061b3a96da (diff)
CommonMark.dtd - added custom_block, custom_inline.
-rw-r--r--CommonMark.dtd15
1 files changed, 13 insertions, 2 deletions
diff --git a/CommonMark.dtd b/CommonMark.dtd
index 17aa83e..2cc403f 100644
--- a/CommonMark.dtd
+++ b/CommonMark.dtd
@@ -1,9 +1,9 @@
<!-- DTD for CommonMark xml export format -->
<!ENTITY % block
- 'block_quote|list|code_block|html|paragraph|heading|thematic_break'>
+ 'block_quote|list|code_block|html|paragraph|heading|thematic_break|custom_block'>
<!ENTITY % inline
- 'text|softbreak|linebreak|code|inline_html|emph|strong|link|image'>
+ 'text|softbreak|linebreak|code|inline_html|emph|strong|link|image|custom_inline'>
<!ELEMENT document (%block;)*>
@@ -37,6 +37,11 @@
<!ELEMENT thematic_break EMPTY>
+<!ELEMENT custom_block (%block;)*>
+<!ATTLIST custom_block
+ on_enter CDATA #IMPLIED
+ on_exit CDATA> #IMPLIED>
+
<!-- inline elements -->
<!ELEMENT text (#PCDATA)>
@@ -67,6 +72,12 @@
url CDATA #REQUIRED
title CDATA #IMPLIED>
+<!ELEMENT custom_inline (%inline;)*>
+<!ATTLIST custom_inline
+ on_enter CDATA #IMPLIED
+ on_exit CDATA> #IMPLIED>
+
+
<!-- All elements can have a sourcepos attribute.
The format is SL:SC-EL:EC
where SL = number of starting line (first line = 1)