Skip to content

Commit

Permalink
Don't call prefix straight
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchi committed Oct 18, 2024
1 parent 3d20731 commit 9bce5d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/construct/partial_mdx_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
//! [mdx_expression_text]: crate::construct::mdx_expression_text
//! [interleaving]: https://mdxjs.com/docs/what-is-mdx/#interleaving
use crate::construct::partial_space_or_tab::space_or_tab_min_max;
use crate::event::Name;
use crate::message;
use crate::state::{Name as StateName, State};
Expand Down Expand Up @@ -202,7 +201,7 @@ pub fn eol_after(tokenizer: &mut Tokenizer) -> State {
// For future lines, we’d move at most to
// `line_start_shifted.column + 4`.
tokenizer.enter(Name::LinePrefix);
prefix(tokenizer)
return State::Retry(StateName::MdxExpressionPrefix);
} else {
State::Retry(StateName::MdxExpressionBefore)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/mdx_expression_flow.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod test_utils;
use markdown::{
mdast::{MdxFlowExpression, MdxTextExpression, Node, Paragraph, Root, Text},
mdast::{MdxFlowExpression, Node, Root},
message, to_html_with_options, to_mdast,
unist::Position,
Constructs, Options, ParseOptions,
Expand Down

0 comments on commit 9bce5d1

Please sign in to comment.