User:Rongzhou/Nvim Regex: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Markdown /md == Text > list <syntaxhighlight lang="text" copy> :%s#^#- # </syntaxhighlight>" |
|||
| Line 1: | Line 1: | ||
== Markdown /md == | == Markdown /md == | ||
Text > list | Text <> list | ||
<syntaxhighlight lang="text" copy> | <syntaxhighlight lang="text" copy> | ||
:%s#^#- # | :%s#^#- # | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="text" copy> | |||
:%s#^- ## | |||
</syntaxhighlight> | |||
== Katex == | |||
\[ \( <> $$ $ separator change: | |||
<syntaxhighlight lang="text" copy> | |||
:%s/\\(\(.\{-}\)\\)/$\1$/g | |||
:%s/\\\[\(.\{-}\)\\\]/$$\1$$/g | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="text" copy> | |||
:%s/\$\$\(.\{-}\)\$\$/\\[\1\\]/g | |||
:%s/\$\(.\{-}\)\$/\\\(\1\\\)/g | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:42, 22 September 2026
Markdown /md
Text <> list
:%s#^#- #
:%s#^- ##
Katex
\[ \( <> $$ $ separator change:
:%s/\\(\(.\{-}\)\\)/$\1$/g
:%s/\\\[\(.\{-}\)\\\]/$$\1$$/g
:%s/\$\$\(.\{-}\)\$\$/\\[\1\\]/g
:%s/\$\(.\{-}\)\$/\\\(\1\\\)/g