Skip to content

Commit 3a8c180

Browse files
Add tests for links and images inside spoiler spans
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 84c5d92 commit 3a8c180

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

test/spec-spoilers.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,24 @@ A spoiler inside the display portion of a wiki link:
398398
--fspoilers --fwiki-links
399399
````````````````````````````````
400400

401+
Links and images inside spoiler spans are recognized normally:
402+
403+
```````````````````````````````` example
404+
||[link](http://example.com) inside spoiler||
405+
.
406+
<p><x-spoiler><a href="http://example.com">link</a> inside spoiler</x-spoiler></p>
407+
.
408+
--fspoilers
409+
````````````````````````````````
410+
411+
```````````````````````````````` example
412+
||![img](http://example.com/img.png) inside spoiler||
413+
.
414+
<p><x-spoiler><img src="http://example.com/img.png" alt="img"> inside spoiler</x-spoiler></p>
415+
.
416+
--fspoilers
417+
````````````````````````````````
418+
401419
Wiki links with a `|` separator must not be mistaken for spoiler delimiters:
402420

403421
```````````````````````````````` example

0 commit comments

Comments
 (0)