simpler inline tags img|emb|doc

This commit is contained in:
Guilhem Fauré 2023-05-04 11:59:55 +02:00
parent a113ba79c5
commit 07e1855a70

View File

@ -52,10 +52,10 @@ _inline_tag.1: pair_inline_tag
| orphan_inline_tag
pair_inline_tag: _PAIR_INLINE_TAG_ANGLE TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" _N? paragraph ( "</" _PURE_TEXT ">" | _N ) -> tag
orphan_inline_tag: _INLINE_TAG_ANGLE "/"? TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" -> orphan_tag
orphan_inline_tag: _INLINE_TAG_ANGLE TAG_NAME ( _OPTION_SEP TAG_OPTION )* ">" -> orphan_tag
_PAIR_INLINE_TAG_ANGLE.1: /<(?=(?:quote|section|div|cadre|frame|code|poesie|del|p|h[0-6])[0-9A-Za-z_:,=\/\.\|\- ]*>)/i
_INLINE_TAG_ANGLE: /<(?!\/?(?:quote|section|div|cadre|frame|code|poesie|del|p|h[0-6]))(?=[0-9A-Za-z\|_:,=\/\.\|\- ]+>)/i
_PAIR_INLINE_TAG_ANGLE.1: /<(?!img|emb|doc)(?=[0-9A-Za-z_:,=\/\.\|\- ]*>)/i
_INLINE_TAG_ANGLE: /<\/?(?=(?:img|emb|doc)[0-9A-Za-z\|_:,=\/\.\|\- ]+>)/i
_link: footnote
| wikilink