Skip to content

mdast_util_to_markdown panics while trying to format UTF text with trailing spaces #169

Closed
@johnlepikhin

Description

@johnlepikhin

Hi there,

There is a bug somewhere in state.rs → container_phrasing(), which makes it panic with the message like "byte index 212 is not a char boundary" at line 245. I reproduced it in simple test: johnlepikhin@e4c451a. Please note that source markdown at lines 7-9 contains sequence:

<UTF-8 character> <SPACE> <SPACE> <NEWLINE>

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