From 8cc7d3640ea4b1fe603df2bd792a85b600879bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Thu, 4 May 2023 11:35:46 +0200 Subject: [PATCH] case insensitive tag regex --- spip2md/spip.lark | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spip2md/spip.lark b/spip2md/spip.lark index 84a20ba..8bb3902 100644 --- a/spip2md/spip.lark +++ b/spip2md/spip.lark @@ -54,8 +54,8 @@ _inline_tag.1: pair_inline_tag pair_inline_tag: _PAIR_INLINE_TAG_ANGLE TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" paragraph ( "" | _N ) -> tag orphan_inline_tag: _INLINE_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" -> orphan_tag -_PAIR_INLINE_TAG_ANGLE.1: /\<(?=(?:quote|section|div|cadre|frame|code|poesie|del|p|P)(?:\|[0-9A-Za-z_:,=\/\-\. ]+)*\>)/ -_INLINE_TAG_ANGLE: /\<(?!\/?(?:quote|section|div|cadre|frame|code|poesie|del|p|P))(?=[0-9A-Za-z\|_:,=\/\-\. ]+\>)/ +_PAIR_INLINE_TAG_ANGLE.1: /\<(?=(?:quote|section|div|cadre|frame|code|poesie|del|p)(?:\|[0-9A-Za-z_:,=\/\-\. ]+)*\>)/i +_INLINE_TAG_ANGLE: /\<(?!\/?(?:quote|section|div|cadre|frame|code|poesie|del|p))(?=[0-9A-Za-z\|_:,=\/\-\. ]+\>)/i _link: footnote | wikilink