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 "}"