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

1.8 KiB

This is weak emphasis

This is also weak emphasis

This is multiple words weak emphasis

This is also multiple words weak emphasis

This is _ not valid _ because the start delimiter must be followed by something (not a space)

weak emphasis could be the first word in the line

weak emphasis could be the first word in the line

Weak emphasis could span multiple lines

Weak emphasis could span multiple lines

Weak emphasis could contain inline code

Weak emphasis could contain strong emphasis

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

The following is not a weak 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 italic

The same delimiter could not be used twice foo and foo must not be highlighted as italic

foo__bar must be "foo" highlighted as italic followed by "{UNDERSCORE}bar{UNDERSCORE}" highlighted as normal

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

_foo_b must be "foo" highlighted as italic followed by "b" highlighted as normal

foo_bar_baz must be "foo" highlighted as italic followed by "bar{UNDERSCORE}baz{UNDERSCORE}" highlighted as normal

_foo_bar baz must be "foo" and "baz" highlighted as italic and "bar" highlighted as normal

Two underscores __ or two asterisks ** must not be highlighted without something between them

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

FOO_BAR must be normal

FOO_BAR and BAR_FOO must be normal

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