Skip to content

Comrak round-trip introduces extraneous space in code fence info string #685

@LeonBaram

Description

@LeonBaram

Description

When comrak is used to parse, and then re-render, a Markdown file (i.e. a round-trip), any code fences in the input are modified such that, on the re-render, each of their info strings will contain an extra leading space space.

Example input:

```lua some_more_info
print("hello world")
```

Expected output:

```lua some_more_info
print("hello world")
```

Actual output:

``` lua some_more_info
print("hello world")
```

Steps to reproduce

Clone this test repo and run cargo test.

Please let me know if further information is required, or if I missed something in the docs. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions