From 12e8343068b906f8b2afddc5569968a8a91fa5b0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:24:24 +0200 Subject: Adding upstream version 2.1.0. Signed-off-by: Daniel Baumann --- tests/test_port/fixtures/strikethrough.md | 136 ++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 tests/test_port/fixtures/strikethrough.md (limited to 'tests/test_port/fixtures/strikethrough.md') diff --git a/tests/test_port/fixtures/strikethrough.md b/tests/test_port/fixtures/strikethrough.md new file mode 100644 index 0000000..ca15b6f --- /dev/null +++ b/tests/test_port/fixtures/strikethrough.md @@ -0,0 +1,136 @@ +. +~~Strikeout~~ +. +

Strikeout

+. + +. +x ~~~~foo~~ bar~~ +. +

x foo bar

+. + +. +x ~~foo ~~bar~~~~ +. +

x foo bar

+. + +. +x ~~~~foo~~~~ +. +

x foo

+. + +. +x ~~a ~~foo~~~~~~~~~~~bar~~ b~~ + +x ~~a ~~foo~~~~~~~~~~~~bar~~ b~~ +. +

x a foo~~~bar b

+

x a foo~~~~bar b

+. + + +Strikeouts have the same priority as emphases: +. +**~~test**~~ + +~~**test~~** +. +

~~test~~

+

**test**

+. + + +Strikeouts have the same priority as emphases with respect to links: +. +[~~link]()~~ + +~~[link~~]() +. +

~~link~~

+

~~link~~

+. + + +Strikeouts have the same priority as emphases with respect to backticks: +. +~~`code~~` + +`~~code`~~ +. +

~~code~~

+

~~code~~

+. + + +Nested strikeouts: +. +~~foo ~~bar~~ baz~~ + +~~f **o ~~o b~~ a** r~~ +. +

foo bar baz

+

f o o b a r

+. + + +Should not have a whitespace between text and "~~": +. +foo ~~ bar ~~ baz +. +

foo ~~ bar ~~ baz

+. + + +Should parse strikethrough within link tags: +. +[~~foo~~]() +. +

foo

+. + + +Newline should be considered a whitespace: +. +~~test +~~ + +~~ +test~~ + +~~ +test +~~ +. +

~~test +~~

+

~~ +test~~

+

~~ +test +~~

+. + +From CommonMark test suite, replacing `**` with our marker: + +. +a~~"foo"~~ +. +

a~~"foo"~~

+. + +Coverage: single tilde +. +~a~ +. +

~a~

+. + +Regression test for #742: +. +-~~~~;~~~~~~ +. +

-;~~

+. -- cgit v1.2.3