Skip to content

Incorrect parsing of code block inside list #561

@ghost

Description

#[test]
fn test_bad_slice_c() {
    parse("+ `\nx\n**\n  *\n  `")
}

Panics with

thread 'test_bad_slice_c' panicked at 'begin <= end (15 <= 14) when slicing `+ `
x
**
  *
  ``', src/parse.rs:802:35

This is deep in the nest of parsing internals, and I have no clue how the parser works here. So uhh.... good luck!

I tried to minimise the test case by removing single characters, and couldn't make it any smaller than this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions