You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If is_mdx is true, use mdx constructs, or use markdown constructs
..if is_mdx {
Constructs::mdx()
}else{
Constructs::default()
}
},
Specifically it is the option mdx_expression_text inside Constructs::mdx(). The parser would parse #my-anchor as an javascript expression when this option is turned on.
Maybe we can give mdx_expression_parse a custom function to handle this kind of special cases, but I haven't find a clean fix yet.
The text was updated successfully, but these errors were encountered:
Reproduction
Expected toc should be:
But got:
More information
Did a little dig into it, and found it caused by the parse options passed to
markdown-rs
here:mdx-rs/crates/mdx_rs/src/lib.rs
Lines 62 to 78 in 5b52c03
Specifically it is the option
mdx_expression_text
insideConstructs::mdx()
. The parser would parse#my-anchor
as an javascript expression when this option is turned on.Maybe we can give
mdx_expression_parse
a custom function to handle this kind of special cases, but I haven't find a clean fix yet.The text was updated successfully, but these errors were encountered: