Skip to content

Commit de73260

Browse files
add spoiler extension to spec
1 parent c06ed32 commit de73260

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/spec.txt

+20
Original file line numberDiff line numberDiff line change
@@ -7734,6 +7734,26 @@ new paragraph~~.
77347734

77357735
</div>
77367736

7737+
<div class="extension">
7738+
7739+
## Spoiler text (extension)
7740+
7741+
Swift-cmark GFM provides the `spoiler` extension, providing an additional emphasis
7742+
type for text that should be hidden and revealed by user interaction.
7743+
7744+
Spoiler text is wrapped in two pipes (`|`).
7745+
7746+
As the use of spoiler text depends on user interaction, GFM only emits a generic
7747+
`<span>` tag that must be styled by the client.
7748+
7749+
```````````````````````````````` example spoiler
7750+
Spoiler alert: ||Hello, world!||
7751+
.
7752+
<p>Spoiler alert: <span class="spoiler">Hello, world!</span></p>
7753+
````````````````````````````````
7754+
7755+
</div>
7756+
77377757
## Links
77387758

77397759
A link contains [link text] (the visible text), a [link destination]

0 commit comments

Comments
 (0)