TAG rule for special markup

This commit is contained in:
Guilhem Fauré 2023-04-25 16:28:01 +02:00
parent 6c46c2406e
commit 370e0445be

View File

@ -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 paragraph: format_text
@ -18,8 +20,6 @@ table: row+
row: /\n\r?\|/ cell+ row: /\n\r?\|/ cell+
cell: format_text "|" cell: format_text "|"
quote: "<quote>" format_text "</quote>"
format_text: ( link | PURE_TEXT )+ format_text: ( link | PURE_TEXT )+
italic: "{" PURE_TEXT "}" italic: "{" PURE_TEXT "}"