1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Fix setext-style markdown header highlight

Reproduce:

    - item

    header
    ------
This commit is contained in:
Ivan Tham 2020-05-27 18:21:51 +08:00
parent aad20f6576
commit 09a45a2e96

View File

@ -66,8 +66,8 @@ add-highlighter shared/markdown/listblock/content default-region ref markdown/in
add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono
# Setext-style header
add-highlighter shared/markdown/inline/text/ regex (\A|\n\n)[^\n]+\n={2,}\h*\n\h*$ 0:title
add-highlighter shared/markdown/inline/text/ regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header
add-highlighter shared/markdown/inline/text/ regex (\A|\n)[^\n]+\n={2,}\h*\n\h*$ 0:title
add-highlighter shared/markdown/inline/text/ regex (\A|\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header
# Atx-style header
add-highlighter shared/markdown/inline/text/ regex ^#[^\n]* 0:header