From 79a50d5e83a42a459550fc2616690df8151d43a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Tue, 9 May 2023 10:59:57 +0200 Subject: [PATCH] optional line break at end of list items --- spip2md/spip.lark | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spip2md/spip.lark b/spip2md/spip.lark index fd5673d..1e9ff31 100644 --- a/spip2md/spip.lark +++ b/spip2md/spip.lark @@ -13,8 +13,8 @@ HORIZONTAL_RULE: /- *- *- *- *[\- ]*/ ?list: unordered_list | ordered_list -unordered_list: ( _UL list_item _N )+ -ordered_list: ( _OL list_item _N )+ +unordered_list: ( _UL list_item _N )* _UL list_item _N? +ordered_list: ( _OL list_item _N )* _OL list_item _N? list_item: _inline{TEXT}+ _UL: /-\*|-(?!#|---)/ _OL: /-#/