From 720a01140c0f93088b7d25172b3173e76b820bab Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Thu, 24 Apr 2025 08:58:46 -0400 Subject: [PATCH] Updated some regexes for markdown coloring --- config/md.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/md.conf b/config/md.conf index cbf4d32..7319a2c 100644 --- a/config/md.conf +++ b/config/md.conf @@ -1,7 +1,13 @@ # Priority decreases going downward ie. If two regexes match the same piece of # text, the one defined earlier will take precedence over the one defined later. # Headings -'##?#?#?#?#?.*': MAGENTA +'^#{1,6}.*?$': MAGENTA + +# Link text +'\[.*?\](?=\(.*?\))': UNDERLINE_WHITE + +# Link URL +'https?://\w+\.\w+.*?(?=\))': RED # Code blocks '```(.|\n)+?```': YELLOW