2026-01-25 09:38:17 +01:00

1.8 KiB

This is strong emphasis

This is also strong emphasis

This is multiple words strong emphasis

This is also multiple words strong emphasis

This is __ not valid __

strong emphasis could be the first word in the line

strong emphasis could be the first word in the line

Strong emphasis could span multiple lines

Strong emphasis could span multiple lines

Strong emphasis could contain inline code

Strong emphasis could contain weak emphasis

The following is not a strong emphasis __ that span multiple lines __ because the start delimiter must be followed by something (not the end of line)

The following is not a strong emphasis ** that span multiple lines ** because the start delimiter must be followed by something (not the end of line)

The usage of alternate delimiters must be idempotent, so all foo foo foo foo must be "foo" highlighted as bold

The same delimiter could not be used twice *foo and foo must be normal

foo____bar must be "foo" highlighted as bold followed by "{UNDERSCORE}{UNDERSCORE}bar{UNDERSCORE}{UNDERSCORE}" highlighted as normal

foobar must be "foo" highlighted as bold followed by "bar" highlighted as bold

__foo__b must be "foo" highlighted as bold followed by "b" highlighted as normal

foo__bar__baz must be "foo" highlighted as bold followed by "bar{UNDERSCORE}baz{UNDERSCORE}" highlighted as normal

__foo__bar baz must be "foo" and "baz" highlighted as bold and "bar" highlighted as normal

Four underscore ____ or four asterisks **** must not be highlighted without something in between

Spaces do not count for something so __ __ and ** ** must be normal

FOO__BAR must not be normal

FOO__BAR and BAR__FOO must be normal

Unfortunately __FOO__BAR doesn't work but escaping __FOO__BAR is always possible