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 on inline markup in image descriptions #285

@cherryblossom000

Description

@cherryblossom000

Markdown:

![`a`](https://example.com)

Crash report:

"name" = "mdcat"
"operating_system" = "Mac OS 14.5.0 [64-bit]"
"crate_version" = "2.1.2"
"explanation" = """
Panic occurred in file '/private/tmp/nix-build-mdcat-2.1.2.drv-0/source/pulldown-cmark-mdcat/src/render.rs' at line 756
"""
"cause" = "Event Code(Borrowed(\"a\")) impossible in state Stacked(StateStack { top_level: TopLevelAttrs { margin_before: Margin }, states: [Inline(InlineText, InlineAttrs { style: Style { fg: None, bg: None, underline: None, effects: Effects() }, indent: 0 })] }, RenderedImage)"
"method" = "Panic"
"backtrace" = """

   0: 0x1035211c0 - core::panicking::panic_fmt::h5e7349beebf2ad6e
   1: 0x10312f21c - pulldown_cmark_mdcat::render::write_event::h4fd0628c0060b7ba
   2: 0x10314dd50 - mdcat::process_file::h2c61c8fc78c3f1df
   3: 0x103159658 - core::iter::traits::iterator::Iterator::try_fold::h01e9f86fbe1110e5
   4: 0x10315876c - mdcat::main::h958474e82a8f2ceb
   5: 0x103163084 - std::sys_common::backtrace::__rust_begin_short_backtrace::h279725f565e6ca66
   6: 0x103153e78 - _main"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions