Skip to content

Commit

Permalink
Support new HTML5 block-level elements.
Browse files Browse the repository at this point in the history
The new HTML5 block-level elements are described at http://diveintohtml5.org/semantics.html.  This patch gives them treatment just like <table> or <div> when they appear within a markdown document.
  • Loading branch information
rcrowley committed May 14, 2010
1 parent 235e714 commit a603534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/markdown.c
Expand Up @@ -36,7 +36,9 @@ static struct kw blocktags[] = { KW("!--"), KW("STYLE"), KW("SCRIPT"),
KW("UL"), KW("P"), KW("OL"), KW("DL"),
KW("PLAINTEXT"), KW("PRE"), KW("TABLE"),
KW("WBR"), KW("XMP"), SC("HR"), SC("BR"),
KW("IFRAME"), KW("MAP") };
KW("IFRAME"), KW("MAP"), KW("ARTICLE"),
KW("ASIDE"), KW("FOOTER"), KW("HEADER"),
KW("HGROUP"), KW("NAV"), KW("SECTION") };
#define SZTAGS (sizeof blocktags / sizeof blocktags[0])
#define MAXTAG 11 /* sizeof "BLOCKQUOTE" */

Expand Down

0 comments on commit a603534

Please sign in to comment.