Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CommonMark.dtd #541

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions CommonMark.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
'block_quote|list|code_block|paragraph|heading|thematic_break|html_block|custom_block'>
<!ENTITY % inline
'text|softbreak|linebreak|code|emph|strong|link|image|html_inline|custom_inline'>
<!ENTITY % nolink
'text|softbreak|linebreak|code|emph|strong|image|html_inline|custom_inline'>

<!ELEMENT document (%block;)*>
<!ATTLIST document
Expand All @@ -18,22 +20,27 @@
type (bullet|ordered) #REQUIRED
start CDATA #IMPLIED
tight (true|false) #REQUIRED
bullet (asterisk|hyphen|plus) #IMPLIED
delimiter (period|paren) #IMPLIED>

<!ELEMENT item (%block;)*>

<!ELEMENT code_block (#PCDATA)>
<!ATTLIST code_block
xml:space CDATA #FIXED "preserve"
fence (backtick|tilde) #IMPLIED
info CDATA #IMPLIED>

<!ELEMENT paragraph (%inline;)*>

<!ELEMENT heading (%inline;)*>
<!ATTLIST heading
level (1|2|3|4|5|6) #REQUIRED>
level (1|2|3|4|5|6) #REQUIRED
type (underlined|prefixed) #IMPLIED>

<!ELEMENT thematic_break EMPTY>
<!ELEMENT thematic_break EMPTY>
<!ATTLIST thematic_break
marker (asterisk|hyphen|underscore) #IMPLIED>

<!ELEMENT html_block (#PCDATA)>
<!ATTLIST html_block
Expand All @@ -51,24 +58,34 @@
<!ELEMENT softbreak EMPTY>

<!ELEMENT linebreak EMPTY>
<!ATTLIST linebreak
marker (spaces|backslash)>

<!ELEMENT code (#PCDATA)>
<!ATTLIST code
xml:space CDATA #FIXED "preserve">

<!ELEMENT emph (%inline;)*>
<!ATTLIST emph
marker (asterisk|underscore)>

<!ELEMENT strong (%inline;)*>
<!ATTLIST strong
marker (asterisk|underscore)>

<!ELEMENT link (%inline;)*>
<!ELEMENT link (%nolink;)*>
<!ATTLIST link
destination CDATA #REQUIRED
title CDATA #IMPLIED>
title CDATA #IMPLIED
label CDATA #IMPLIED
type (inline|reference|shortcut|auto)>

<!ELEMENT image (%inline;)*>
<!ATTLIST image
destination CDATA #REQUIRED
title CDATA #IMPLIED>
title CDATA #IMPLIED
label CDATA #IMPLIED
type (inline|reference|shortcut)>

<!ELEMENT html_inline (#PCDATA)>
<!ATTLIST html_inline
Expand Down