cmark

My personal build of CMark ✏️

Commit
7274556fb19a2da10ae8a0644c2710c191ab85b1
Parent
7d4b88b7a78320f95345c22aba2776fe68b6cd1f
Author
John MacFarlane <fiddlosopher@gmail.com>
Date

Don't treat "br" as a block-level HTML tag.

Fixed in spec and both implementations. Closes #67.

Diffstat

3 files changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified js/stmd.js 2 1 1
Modified spec.txt 2 1 1
Modified src/scanners.re 2 1 1
diff --git a/js/stmd.js b/js/stmd.js
@@ -21,7 +21,7 @@ var IN_PARENS = '\\((' + ESCAPED_CHAR + '|[^)\\x00])*\\)';
 var REG_CHAR = '[^\\\\()\\x00-\\x20]';
 var IN_PARENS_NOSP = '\\((' + REG_CHAR + '|' + ESCAPED_CHAR + ')*\\)';
 var TAGNAME = '[A-Za-z][A-Za-z0-9]*';
-var BLOCKTAGNAME = '(?:article|header|aside|hgroup|blockquote|hr|body|li|br|map|button|object|canvas|ol|caption|output|col|p|colgroup|pre|dd|progress|div|section|dl|table|td|dt|tbody|embed|textarea|fieldset|tfoot|figcaption|th|figure|thead|footer|footer|tr|form|ul|h1|h2|h3|h4|h5|h6|video|script|style)';
+var BLOCKTAGNAME = '(?:article|header|aside|hgroup|blockquote|hr|body|li|map|button|object|canvas|ol|caption|output|col|p|colgroup|pre|dd|progress|div|section|dl|table|td|dt|tbody|embed|textarea|fieldset|tfoot|figcaption|th|figure|thead|footer|footer|tr|form|ul|h1|h2|h3|h4|h5|h6|video|script|style)';
 var ATTRIBUTENAME = '[a-zA-Z_:][a-zA-Z0-9:._-]*';
 var UNQUOTEDVALUE = "[^\"'=<>`\\x00-\\x20]+";
 var SINGLEQUOTEDVALUE = "'[^']*'";
diff --git a/spec.txt b/spec.txt
@@ -1351,7 +1351,7 @@ An [HTML block tag](#html-block-tag) <a id="html-block-tag"></a> is
 an [open tag](#open-tag) or [closing tag](#closing-tag) whose tag
 name is one of the following (case-insensitive):
 `article`, `header`, `aside`, `hgroup`, `blockquote`, `hr`, `body`,
-`li`, `br`, `map`, `button`, `object`, `canvas`, `ol`, `caption`,
+`li`, `map`, `button`, `object`, `canvas`, `ol`, `caption`,
 `output`, `col`, `p`, `colgroup`, `pre`, `dd`, `progress`, `div`,
 `section`, `dl`, `table`, `td`, `dt`, `tbody`, `embed`, `textarea`,
 `fieldset`, `tfoot`, `figcaption`, `th`, `figure`, `thead`, `footer`,
diff --git a/src/scanners.re b/src/scanners.re
@@ -17,7 +17,7 @@
 
   tagname = [A-Za-z][A-Za-z0-9]*;
 
-  blocktagname = 'article'|'header'|'aside'|'hgroup'|'blockquote'|'hr'|'body'|'li'|'br'|'map'|'button'|'object'|'canvas'|'ol'|'caption'|'output'|'col'|'p'|'colgroup'|'pre'|'dd'|'progress'|'div'|'section'|'dl'|'table'|'td'|'dt'|'tbody'|'embed'|'textarea'|'fieldset'|'tfoot'|'figcaption'|'th'|'figure'|'thead'|'footer'|'footer'|'tr'|'form'|'ul'|'h1'|'h2'|'h3'|'h4'|'h5'|'h6'|'video'|'script'|'style';
+  blocktagname = 'article'|'header'|'aside'|'hgroup'|'blockquote'|'hr'|'body'|'li'|'map'|'button'|'object'|'canvas'|'ol'|'caption'|'output'|'col'|'p'|'colgroup'|'pre'|'dd'|'progress'|'div'|'section'|'dl'|'table'|'td'|'dt'|'tbody'|'embed'|'textarea'|'fieldset'|'tfoot'|'figcaption'|'th'|'figure'|'thead'|'footer'|'footer'|'tr'|'form'|'ul'|'h1'|'h2'|'h3'|'h4'|'h5'|'h6'|'video'|'script'|'style';
 
   attributename = [a-zA-Z_:][a-zA-Z0-9:._-]*;