Nvim Regex by @Rongzhou
Appearance
Markdown /md
Text <> list
:%s#^#- #
:%s#^- ##
Katex
\[ \( <> $$ $ separator change:
:%s/\(\\(\(.\{-}\)\\)\)\|\(\\\[\(\_.\{-}\)\\\]\)/\=submatch(1) != '' ? '$'.submatch(2).'$' : '$$'.submatch(4).'$$'/g
:%s/\$\$\(\_.\{-}\)\$\$\|\$\(.\{-}\)\$/\=submatch(0) =~ '^\$\$' ? '\['.submatch(1).'\]' : '\('.submatch(2).'\)'/g
Wikitext
<syntaxhighlight ... inline></syntaxhighlight> > <code></code>:
:%s#<syntaxhighlight[^>]*inline>\(.\{-}\)<\/syntaxhighlight>#<code>\1</code>#g
- > *:
:%s#\##*#g