From 775f2abe978372dd2a8c55122c7c7f2f924e8db2 Mon Sep 17 00:00:00 2001 From: Henry Blyth Date: Mon, 13 Apr 2020 22:55:14 +0100 Subject: [PATCH 1/2] Include HTML5.1
in known block tags Fix #787 --- src/subParsers/makehtml/hashHTMLBlocks.js | 1 + .../makehtml/cases/standard/html5-strutural-tags.html | 4 ++++ .../makehtml/cases/standard/html5-strutural-tags.md | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/src/subParsers/makehtml/hashHTMLBlocks.js b/src/subParsers/makehtml/hashHTMLBlocks.js index 0d18d86..e6834ff 100644 --- a/src/subParsers/makehtml/hashHTMLBlocks.js +++ b/src/subParsers/makehtml/hashHTMLBlocks.js @@ -36,6 +36,7 @@ showdown.subParser('makehtml.hashHTMLBlocks', function (text, options, globals) 'hgroup', 'output', 'video', + 'details', 'p' ], repFunc = function (wholeMatch, match, left, right) { diff --git a/test/functional/makehtml/cases/standard/html5-strutural-tags.html b/test/functional/makehtml/cases/standard/html5-strutural-tags.html index f054d42..2374788 100644 --- a/test/functional/makehtml/cases/standard/html5-strutural-tags.html +++ b/test/functional/makehtml/cases/standard/html5-strutural-tags.html @@ -55,3 +55,7 @@

Secondary title

+
+ Summarise me +

Explain the details

+
diff --git a/test/functional/makehtml/cases/standard/html5-strutural-tags.md b/test/functional/makehtml/cases/standard/html5-strutural-tags.md index bbf9c67..33ec68d 100644 --- a/test/functional/makehtml/cases/standard/html5-strutural-tags.md +++ b/test/functional/makehtml/cases/standard/html5-strutural-tags.md @@ -66,3 +66,8 @@ the end + +
+ Summarise me +

Explain the details

+
From cb689aa23bc8e7f7c2f03d30a9ff357f8808ee34 Mon Sep 17 00:00:00 2001 From: Henry Blyth Date: Mon, 13 Apr 2020 23:05:07 +0100 Subject: [PATCH 2/2] Add
corresponding makeMarkdown test --- .../makemarkdown/cases/standard/html5-strutural-tags.html | 4 ++++ .../makemarkdown/cases/standard/html5-strutural-tags.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html b/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html index 9437a87..6697a02 100644 --- a/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html +++ b/test/functional/makemarkdown/cases/standard/html5-strutural-tags.html @@ -32,3 +32,7 @@

Secondary title

+
+ Summarise me +

Explain the details

+
diff --git a/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md b/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md index 3c6c7c8..1262a44 100644 --- a/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md +++ b/test/functional/makemarkdown/cases/standard/html5-strutural-tags.md @@ -31,3 +31,5 @@ the end

Main title

Secondary title

+ +
Summarise me

Explain the details