From f62c6348806bfe2070a0e6c30f113c7d0fbb074d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Wed, 26 Apr 2023 11:55:00 +0200 Subject: [PATCH] filter start if only one child, newline problem --- spip2md/spip.lark | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spip2md/spip.lark b/spip2md/spip.lark index db78d2f..398ce53 100644 --- a/spip2md/spip.lark +++ b/spip2md/spip.lark @@ -1,10 +1,10 @@ -start: unordered_list - | ordered_list - | table - | SEPARATOR - | N+ - | heading - | paragraph +?start: unordered_list + | ordered_list + | table + | SEPARATOR + | N+ + | heading + | paragraph unordered_list: ( N "-*" list_element )+ ordered_list: ( N "-#" list_element )+