aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2023-05-13 16:45:56 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2023-05-13 16:45:56 +0200
commit7340a46b5c7fdb05796377d8c73c4843b6ae2876 (patch)
tree503a3c823465581492ca668cf3306fcd6b4972f9 /src
parente692ab0586b49c5eb544e5236be52241e4b24402 (diff)
downloadmarkdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.tar.gz
markdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.tar.bz2
markdown-rs-7340a46b5c7fdb05796377d8c73c4843b6ae2876.zip
Remove superfluous code
Diffstat (limited to '')
-rw-r--r--src/construct/partial_mdx_jsx.rs5
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) => {