diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-10-01 14:21:33 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-10-01 14:21:33 +0200 |
commit | d67b11c832cd0061392e46e847a465f8f73c1ca5 (patch) | |
tree | 09bf2e08d0075917f051edbf210be8cb8f79b303 /deps/md4c/test/strikethrough.txt | |
parent | 6c04dfe2caff1e03ba5c898b591327439452f616 (diff) | |
parent | d071b4177c1a3897f4682e245046a45f362b6ac5 (diff) |
Merge commit 'd071b4177c1a3897f4682e245046a45f362b6ac5' as 'deps/md4c'
Diffstat (limited to 'deps/md4c/test/strikethrough.txt')
-rw-r--r-- | deps/md4c/test/strikethrough.txt | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/deps/md4c/test/strikethrough.txt b/deps/md4c/test/strikethrough.txt new file mode 100644 index 0000000..884ce59 --- /dev/null +++ b/deps/md4c/test/strikethrough.txt @@ -0,0 +1,75 @@ + +# Strike-Through + +With the flag `MD_FLAG_STRIKETHROUGH`, MD4C enables extension for recognition +of strike-through spans. + +Strike-through text is any text wrapped in one or two tildes (`~`). + +```````````````````````````````` example +~Hi~ Hello, world! +. +<p><del>Hi</del> Hello, world!</p> +```````````````````````````````` + +If the length of the opener and closer doesn't match, the strike-through is +not recognized. + +```````````````````````````````` example +This ~text~~ is curious. +. +<p>This ~text~~ is curious.</p> +```````````````````````````````` + +Too long tilde sequence won't be recognized: + +```````````````````````````````` example +foo ~~~bar~~~ +. +<p>foo ~~~bar~~~</p> +```````````````````````````````` + +Also note the markers cannot open a strike-through span if they are followed +with a whitespace; and similarly, then cannot close the span if they are +preceded with a whitespace: + +```````````````````````````````` example +~foo ~bar +. +<p>~foo ~bar</p> +```````````````````````````````` + + +As with regular emphasis delimiters, a new paragraph will cause the cessation +of parsing a strike-through: + +```````````````````````````````` example +This ~~has a + +new paragraph~~. +. +<p>This ~~has a</p> +<p>new paragraph~~.</p> +```````````````````````````````` + + +## GitHub Issues + +### [Issue 69](https://github.com/mity/md4c/issues/69) +```````````````````````````````` example +~`foo`~ +. +<p><del><code>foo</code></del></p> +```````````````````````````````` + +```````````````````````````````` example +~*foo*~ +. +<p><del><em>foo</em></del></p> +```````````````````````````````` + +```````````````````````````````` example +*~foo~* +. +<p><em><del>foo</del></em></p> +```````````````````````````````` |