mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
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:
commit
965789589e
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user