diff options
author | Titus Wormer <tituswormer@gmail.com> | 2023-05-13 16:45:56 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2023-05-13 16:45:56 +0200 |
commit | 7340a46b5c7fdb05796377d8c73c4843b6ae2876 (patch) | |
tree | 503a3c823465581492ca668cf3306fcd6b4972f9 | |
parent | e692ab0586b49c5eb544e5236be52241e4b24402 (diff) | |
download | markdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.tar.gz markdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.tar.bz2 markdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.zip |
Remove superfluous code
-rw-r--r-- | src/construct/partial_mdx_jsx.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/construct/partial_mdx_jsx.rs b/src/construct/partial_mdx_jsx.rs index 2031a5a..8bf0742 100644 --- a/src/construct/partial_mdx_jsx.rs +++ b/src/construct/partial_mdx_jsx.rs @@ -1060,10 +1060,7 @@ pub fn es_whitespace_inside(tokenizer: &mut Tokenizer) -> State { match tokenizer.current { Some(b'\n') => { tokenizer.exit(Name::MdxJsxEsWhitespace); - tokenizer.enter(Name::LineEnding); - tokenizer.consume(); - tokenizer.exit(Name::LineEnding); - State::Next(StateName::MdxJsxEsWhitespaceEolAfter) + State::Retry(StateName::MdxJsxEsWhitespaceStart) } // Allow continuation bytes. Some(0x80..=0xBF) => { |