Merge pull request #788 from henrahmagix/include-html51-details-in-block-elements

Include HTML5.1 <details> in known block tags
This commit is contained in:
Devyn S 2021-11-10 13:45:13 -07:00 committed by GitHub
commit 965789589e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -31,3 +31,5 @@ the end
<hgroup><h1>Main title</h1><h2>Secondary title</h2></hgroup> <hgroup><h1>Main title</h1><h2>Secondary title</h2></hgroup>
<output name="result"></output> <output name="result"></output>
<details><summary>Summarise me</summary><p>Explain the details</p></details>