From 370e0445beb4e092b1a95cfe13ef72934592f259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Tue, 25 Apr 2023 16:28:01 +0200 Subject: [PATCH] TAG rule for special markup --- spip2md/spip.lark | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spip2md/spip.lark b/spip2md/spip.lark index 266220e..3d6e846 100644 --- a/spip2md/spip.lark +++ b/spip2md/spip.lark @@ -1,4 +1,6 @@ -section: /\n\r?/ ( paragraph | heading | list | table | quote | SEPARATOR ) /\n\r?/ +section: /\n\r?/ TAG* ( paragraph | heading | list | table | SEPARATOR ) /\n\r?/ + +TAG: "<" PURE_TEXT [ "|" PURE_TEXT ] ">" [ /\n\r?/ ] paragraph: format_text @@ -18,8 +20,6 @@ table: row+ row: /\n\r?\|/ cell+ cell: format_text "|" -quote: "" format_text "" - format_text: ( link | PURE_TEXT )+ italic: "{" PURE_TEXT "}"