diff --git a/src/showdown.js b/src/showdown.js index a5a88d0..612157f 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -215,8 +215,8 @@ var _HashHTMLBlocks = function(text) { // "paragraphs" that are wrapped in non-block-level tags, such as anchors, // phrase emphasis, and spans. The list of tags we're looking for is // hard-coded: - var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del|style"; - var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style"; + var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del|style|section|header|footer|nav|article|aside"; + var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|style|section|header|footer|nav|article|aside"; // First, look for nested blocks, e.g.: //
These HTML5 tags should pass through just fine.
+ +the end
\ No newline at end of file diff --git a/test/cases/html5-strutural-tags.md b/test/cases/html5-strutural-tags.md new file mode 100644 index 0000000..15a9fbe --- /dev/null +++ b/test/cases/html5-strutural-tags.md @@ -0,0 +1,11 @@ + +These HTML5 tags should pass through just fine. + +