Improve highlighting of markdown lists

Removes the inline code highlighter for lists to improve
readability in indented lists.
This commit is contained in:
Hampus Fröjdholm 2021-05-25 00:46:54 +02:00
parent 38f85706ff
commit e0731b70cf

View File

@ -55,12 +55,13 @@ evaluate-commands %sh{
done
}
add-highlighter shared/markdown/codeblock region -match-capture \
add-highlighter shared/markdown/inline/codeblock region -match-capture \
^(\h*)```\h* \
^(\h*)```\h*$ \
fill meta
add-highlighter shared/markdown/codeblock region "^( {4}|\t)" "$" fill meta
add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^\h*((?=[-*])|$) regions
add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^(?=\S) regions
add-highlighter shared/markdown/listblock/g default-region group
add-highlighter shared/markdown/listblock/g/ ref markdown/inline
add-highlighter shared/markdown/listblock/g/marker regex ^\h*([-*])\s 1:bullet
@ -91,9 +92,6 @@ add-highlighter shared/markdown/inline/text/ regex (?<!_)(__([^\s_]|([^\s_](\n?[
add-highlighter shared/markdown/inline/text/ regex ^\h*(>\h*)+ 0:comment
add-highlighter shared/markdown/inline/text/ regex "\H( {2,})$" 1:+r@meta
# Inline code
add-highlighter shared/markdown/inline/text/ regex "^( {4}|\t)+([^\n]+)" 2:meta
# Commands
# ‾‾‾‾‾‾‾‾