Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

mdcat panics if image title is in two lines #194

@laoshaw

Description

@laoshaw

Not quite sure if this is a mdcat bug: if I split the image line into two lines as below, run mdcat test.md under kitty will abort as shown below.

test.md

![
](my.png)

run mdcat test.md it will report below errors:

thread 'main' panicked at 'Event SoftBreak impossible in state Stacked(StateStack { top_level: TopLevelAttrs { margin_before: Margin }, states: [Inline(InlineText, InlineAttrs { style: Style {}, indent: 0 })] }, RenderedImage)

put test.md above into one line it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions