diff options
-rw-r--r-- | parse_wiki_text/src/parse.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/parse_wiki_text/src/parse.rs b/parse_wiki_text/src/parse.rs index 33314bb..1849a24 100644 --- a/parse_wiki_text/src/parse.rs +++ b/parse_wiki_text/src/parse.rs @@ -106,7 +106,13 @@ pub fn parse<'a>(configuration: &crate::Configuration, wiki_text: &'a str) -> cr _ => crate::tag::parse_start_tag(&mut state, configuration), }, Some(b'=') => { - crate::template::parse_parameter_name_end(&mut state); + // hack + if state.get_byte(state.scan_position - 1) == Some(b'>') { + state.scan_position -= 1; + crate::line::parse_end_of_line(&mut state); + } else { + crate::template::parse_parameter_name_end(&mut state); + } } Some(b'[') => { if state.get_byte(state.scan_position + 1) == Some(b'[') { |