Skip to content

Commit

Permalink
Merge pull request #788 from henrahmagix/include-html51-details-in-bl…
Browse files Browse the repository at this point in the history
…ock-elements

Include HTML5.1 <details> in known block tags
  • Loading branch information
SyntaxRules authored Nov 10, 2021
2 parents ea72183 + cb689aa commit 9657895
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/subParsers/makehtml/hashHTMLBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ showdown.subParser('makehtml.hashHTMLBlocks', function (text, options, globals)
'hgroup',
'output',
'video',
'details',
'p'
],
repFunc = function (wholeMatch, match, left, right) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ <h1>Main title</h1>
<h2>Secondary title</h2>
</hgroup>
<output name="result"></output>
<details>
<summary>Summarise me</summary>
<p>Explain the details</p>
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ the end
</hgroup>

<output name="result"></output>

<details>
<summary>Summarise me</summary>
<p>Explain the details</p>
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ <h1>Main title</h1>
<h2>Secondary title</h2>
</hgroup>
<output name="result"></output>
<details>
<summary>Summarise me</summary>
<p>Explain the details</p>
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ the end
<hgroup><h1>Main title</h1><h2>Secondary title</h2></hgroup>

<output name="result"></output>

<details><summary>Summarise me</summary><p>Explain the details</p></details>

0 comments on commit 9657895

Please sign in to comment.