Include HTML5.1 <details> in known block tags

Fix #787
pull/788/head
Henry Blyth 2020-04-13 22:55:14 +01:00
parent a9f38b6f05
commit 775f2abe97
3 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,7 @@ showdown.subParser('makehtml.hashHTMLBlocks', function (text, options, globals)
'hgroup',
'output',
'video',
'details',
'p'
],
repFunc = function (wholeMatch, match, left, right) {

View File

@ -55,3 +55,7 @@
<h2>Secondary title</h2>
</hgroup>
<output name="result"></output>
<details>
<summary>Summarise me</summary>
<p>Explain the details</p>
</details>

View File

@ -66,3 +66,8 @@ the end
</hgroup>
<output name="result"></output>
<details>
<summary>Summarise me</summary>
<p>Explain the details</p>
</details>