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 I try parsing the following string with this ("\\{foo|bar}{baz|qux}"), the escape is correctly honored, but for some reason '}' is treated as a marker to start at the same as '{' is. The error output shows this:
START POS 9
Relevant slice }{baz|qux}
thread 'test::test::case_2' panicked at crates/markdown-it-ruby/src/lib.rs:66:47:
begin <= end (10 <= 9) when slicing `\{foo|bar}{baz|qux}`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I also tested this replacing '{' and '}' with '[' and ']' respectively and ran into the same issue. Interestingly, I didn't have this issue when I replaced the curly braces with parentheses.
Is this an error on my part? Because I expect MARKER - and only MARKER - to trigger the start of the scanner.
The text was updated successfully, but these errors were encountered:
I have the following code:
If I try parsing the following string with this (
"\\{foo|bar}{baz|qux}"
), the escape is correctly honored, but for some reason'}'
is treated as a marker to start at the same as'{'
is. The error output shows this:I also tested this replacing
'{'
and'}'
with'['
and']'
respectively and ran into the same issue. Interestingly, I didn't have this issue when I replaced the curly braces with parentheses.Is this an error on my part? Because I expect
MARKER
- and onlyMARKER
- to trigger the start of the scanner.The text was updated successfully, but these errors were encountered: