From 8eec4033f8fd6dfaf87135b92a988b4c64d09657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Tue, 9 May 2023 16:31:34 +0200 Subject: [PATCH] paragraphs cannot start with tags --- spip2md/spip.lark | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spip2md/spip.lark b/spip2md/spip.lark index 375a01a..c585bed 100644 --- a/spip2md/spip.lark +++ b/spip2md/spip.lark @@ -40,10 +40,9 @@ orphan_block_tag: _ORPHAN_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* "> _PAIR_TAG_ANGLE: /<(?=([0-9a-z]+)[^{}<>\[\]]*>[\s\S]*<\/\1>)/i _ORPHAN_TAG_ANGLE: /<(?=([0-9a-z]+)[^{}<>\[\]]*>)(?![\s\S]*\<\/\1\>)/i -paragraph{begin, text}: _inline{begin} _N? ( _inline{text} _N? )* +paragraph{begin, text}: _inline{begin} _N? ( ( _inline{text} | _inline_tag ) _N? )* -_inline{text}: _inline_tag - | _link +_inline{text}: _link | emphasis | strong | text