higher priority for tables

This commit is contained in:
Guilhem Fauré 2023-04-28 16:06:28 +02:00
parent afdf034f6e
commit d1702d6d19

View File

@ -19,14 +19,14 @@ list_item: _inline{TEXT}+
_UL: /-\*|-[^#-]/ _UL: /-\*|-[^#-]/
_OL: /-#/ _OL: /-#/
table: ( _TBL_META table_metadata "||" _N )? ( table_row _N )+ table.1: ( _TBL_META table_metadata "||" _N )? ( table_row _N )+
table_metadata: table_title "|" table_description table_metadata: table_title "|" table_description
table_title: _inline{TABLE_TEXT} table_title: _inline{TABLE_TEXT}
table_description: _inline{TABLE_TEXT} table_description: _inline{TABLE_TEXT}
table_row: ( _TBL table_cell )+ "|" table_row: ( _TBL table_cell )+ "|"
table_cell: _inline{TABLE_TEXT} table_cell: _inline{TABLE_TEXT}
_TBL_META: "||" _TBL_META.1: "||"
_TBL: "|" _TBL.1: "|"
heading: _H _inline{MARKED_TEXT}+ "}}}" heading: _H _inline{MARKED_TEXT}+ "}}}"
_H: "{{{" _H: "{{{"
@ -63,8 +63,8 @@ A_TEXT: /[^\r\n\{]+?(?=->)/
tag.1: start_tag block? end_tag? tag.1: start_tag block? end_tag?
start_tag.1: _STAG TAG_NAME ( "|" TAG_OPTION )* ">" start_tag: _STAG TAG_NAME ( "|" TAG_OPTION )* ">"
end_tag.1: _ETAG TAG_NAME ( "|" TAG_OPTION )* ">" end_tag: _ETAG TAG_NAME ( "|" TAG_OPTION )* ">"
_ETAG.1: /<\/(?=[0-9A-Za-z_:\|\/\-\.]+>)/ _ETAG.1: /<\/(?=[0-9A-Za-z_:\|\/\-\.]+>)/
_STAG.1: /<(?=[0-9A-Za-z_:\|\/\-\.]+>)/ _STAG.1: /<(?=[0-9A-Za-z_:\|\/\-\.]+>)/
TAG_NAME: _PURE_TEXT TAG_NAME: _PURE_TEXT