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/underline.txt | |
parent | 6c04dfe2caff1e03ba5c898b591327439452f616 (diff) | |
parent | d071b4177c1a3897f4682e245046a45f362b6ac5 (diff) |
Merge commit 'd071b4177c1a3897f4682e245046a45f362b6ac5' as 'deps/md4c'
Diffstat (limited to 'deps/md4c/test/underline.txt')
-rw-r--r-- | deps/md4c/test/underline.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/deps/md4c/test/underline.txt b/deps/md4c/test/underline.txt new file mode 100644 index 0000000..289e97f --- /dev/null +++ b/deps/md4c/test/underline.txt @@ -0,0 +1,39 @@ + +# Underline + +With the flag `MD_FLAG_UNDERLINE`, MD4C sees underscore `_` rather as a mark +denoting an underlined span rather than an ordinary emphasis (or a strong +emphasis). + +```````````````````````````````` example +_foo_ +. +<p><u>foo</u></p> +```````````````````````````````` + +In sequences of multiple underscores, each single one translates into an +underline span mark. + +```````````````````````````````` example +___foo___ +. +<p><u><u><u>foo</u></u></u></p> +```````````````````````````````` + +Intra-word underscores are not recognized as underline marks: + +```````````````````````````````` example +foo_bar_baz +. +<p>foo_bar_baz</p> +```````````````````````````````` + +Also the parser follows the standard understanding when the underscore can +or cannot open or close a span. Therefore there is no underline in the following +example because no underline can be seen as a closing mark. + +```````````````````````````````` example +_foo _bar +. +<p>_foo _bar</p> +```````````````````````````````` |