aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-25 12:07:04 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-25 12:07:11 +0200
commit2cd3e65fd85b137f4951c5ccfdc259c06d49c80e (patch)
tree360909ed27cf35ede99f9e73c88fcfbcadd11ca2 /src
parent74ec04655f81eb57a648846b2a77974428497b86 (diff)
downloadmarkdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.tar.gz
markdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.tar.bz2
markdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.zip
Fix lists in MDX
Closes GH-11.
Diffstat (limited to 'src')
-rw-r--r--src/construct/mdx_expression_flow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/mdx_expression_flow.rs b/src/construct/mdx_expression_flow.rs
index ef3ca41..bfb73de 100644
--- a/src/construct/mdx_expression_flow.rs
+++ b/src/construct/mdx_expression_flow.rs
@@ -49,7 +49,6 @@ use crate::util::constant::TAB_SIZE;
pub fn start(tokenizer: &mut Tokenizer) -> State {
if tokenizer.parse_state.options.constructs.mdx_expression_flow {
tokenizer.tokenize_state.token_1 = Name::MdxFlowExpression;
- tokenizer.concrete = true;
if matches!(tokenizer.current, Some(b'\t' | b' ')) {
tokenizer.attempt(State::Next(StateName::MdxExpressionFlowBefore), State::Nok);
State::Retry(space_or_tab_min_max(
@@ -77,6 +76,7 @@ pub fn start(tokenizer: &mut Tokenizer) -> State {
/// ```
pub fn before(tokenizer: &mut Tokenizer) -> State {
if Some(b'{') == tokenizer.current {
+ tokenizer.concrete = true;
tokenizer.attempt(State::Next(StateName::MdxExpressionFlowAfter), State::Nok);
State::Retry(StateName::MdxExpressionStart)
} else {