diff options
author | Titus Wormer <tituswormer@gmail.com> | 2023-06-23 21:43:35 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2023-06-23 21:43:35 +0200 |
commit | 24d78c3420980f3e56fc420f8efc7e601b144ee7 (patch) | |
tree | e96f8a7c8939b5d28fce1fa5780d294fc6e46a9d | |
parent | a52467af0968466cbbd66703578202bd7bd6b01b (diff) | |
download | markdown-rs-24d78c3420980f3e56fc420f8efc7e601b144ee7.tar.gz markdown-rs-24d78c3420980f3e56fc420f8efc7e601b144ee7.tar.bz2 markdown-rs-24d78c3420980f3e56fc420f8efc7e601b144ee7.zip |
Fix internal docs on grammar of html (flow)
-rw-r--r-- | src/construct/html_flow.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/construct/html_flow.rs b/src/construct/html_flow.rs index c994ec7..fe68550 100644 --- a/src/construct/html_flow.rs +++ b/src/construct/html_flow.rs @@ -19,10 +19,10 @@ //! //! raw_tag_name ::= 'pre' | 'script' | 'style' | 'textarea' ; Note: case-insensitive. //! basic_tag_name ::= 'address' | 'article' | 'aside' | ... ; See `constants.rs`, and note: case-insensitive. -//! opening_tag ::= '<' tag_name *(space_or_tab_eol attribute) [[space_or_tab_eol] '/'] [space_or_tab_eol] '>' -//! closing_tag ::= '</' tag_name [space_or_tab_eol] '>' +//! opening_tag ::= '<' tag_name *(1*space_or_tab attribute) [*space_or_tab '/'] *space_or_tab '>' +//! closing_tag ::= '</' tag_name *space_or_tab '>' //! tag_name ::= ascii_alphabetic *('-' | ascii_alphanumeric) -//! attribute ::= attribute_name [[space_or_tab_eol] '=' [space_or_tab_eol] attribute_value] +//! attribute ::= attribute_name [*space_or_tab '=' *space_or_tab attribute_value] //! attribute_name ::= (':' | '_' | ascii_alphabetic) *('-' | '.' | ':' | '_' | ascii_alphanumeric) //! attribute_value ::= '"' *(line - '"') '"' | "'" *(line - "'") "'" | 1*(text - '"' - "'" - '/' - '<' - '=' - '>' - '`') //! ``` |