The regexps are meant to extract a match immediately following the cursor - the anchor should have been there from the beginning... Also empty sub/superscript doesn't make sense - nested sub/superscript does make sense but yagni.
1.2 KiB
1.2 KiB
- emphasis and a hard line break
see? - .emphasis with dot border chars.
- emphasis with a slash/inside
- emphasis followed by raw text with slash /
- ->/not an emphasis/<-
- links with slashes do not become emphasis: https://somelinkshouldntrenderaccidentalemphasis.com/ emphasis
- underlined bold
verbatim
code
strikethrough - bold string with an *asterisk inside
multiline emphasis is supported - and respects MaxEmphasisNewLines (default: 1)
so this is emphasized /but this is not emphasized/- empty emphasis markers like ++ // __ and so on are ignored
- use _{} for subscriptsub and ^{} for superscriptsuper
-
links
- regular link https://example.com link without description
- regular link example.com link with description
- regular link to a file (image)
- regular link to a file (video)
- regular link to http (image)
- regular link to https (image)
- regular link enclosed in [] [https://www.example.com] [example.com]
- auto link, i.e. not inside
\[[square brackets]\]
https://www.example.com