aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)