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

mdcat crashes on tasklists with nested paragraphs #302

Closed
stijn577 opened this issue Nov 22, 2024 · 1 comment · Fixed by #303
Closed

mdcat crashes on tasklists with nested paragraphs #302

stijn577 opened this issue Nov 22, 2024 · 1 comment · Fixed by #303
Assignees
Labels
bug Something isn't working

Comments

@stijn577
Copy link

This error occurs when rendering a file with a todo list, a todolist like this works fine

- [ ] foo
  - [ ] bar
  - [ ] baz
- [ ] test
  - [ ] test1
  - [ ] test2

but it seems once i leave space between the list it crashes, like so:

- [ ] foo
  - [ ] bar
  - [ ] baz

- [ ] test
  - [ ] test1
  - [ ] test2

the crash report:

"name" = "mdcat"
"operating_system" = "Windows 10.0.19045 (Windows 10 Home) [64-bit]"
"crate_version" = "2.5.0"
"explanation" = '''
Panic occurred in file 'C:\Users\Stijn_Admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pulldo
wn-cmark-mdcat-2.5.0\src\render.rs' at line 946
'''
"cause" = "Event TaskListMarker(true) impossible in state Stacked(StateStack { top_level: TopLevelAttrs
{ margin_before: Margin }, states: [Inline(ListItem(Unordered, ItemBlock), InlineAttrs { style: Style {
fg: None, bg: None, underline: None, effects: Effects() }, indent: 2 })] }, Inline(InlineText, InlineAtt
rs { style: Style { fg: None, bg: None, underline: None, effects: Effects() }, indent: 2 }))"
"method" = "Panic"
"backtrace" = """
   0:     0x7ff795a37da8 - <unresolved>
   1:     0x7ff795a377ec - <unresolved>
   2:     0x7ff795a1cc8a - <unresolved>
   3:     0x7ff795a198a4 - <unresolved>
   4:     0x7ff795a07418 - <unresolved>
   5:     0x7ff7961b4392 - <unresolved>
   6:     0x7ff7961b41d9 - <unresolved>
   7:     0x7ff7961b27ff - <unresolved>
   8:     0x7ff7961b3dde - <unresolved>
   9:     0x7ff7962030b1 - <unresolved>
  10:     0x7ff795ad7714 - <unresolved>
  11:     0x7ff795abd883 - <unresolved>
  12:     0x7ff795aacbf7 - <unresolved>
  13:     0x7ff795a0fcbf - <unresolved>
  14:     0x7ff795a109a2 - <unresolved>
  15:     0x7ff795a17886 - <unresolved>
  16:     0x7ff795a130ac - <unresolved>
  17:     0x7ff7961a4462 - <unresolved>
  18:     0x7ff795a1102c - <unresolved>
  19:     0x7ff7961dffa0 - <unresolved>
  20:     0x7ffa5bff7374 - BaseThreadInitThunk
  21:     0x7ffa5da1cc91 - RtlUserThreadStart
"""
@swsnr swsnr added the bug Something isn't working label Nov 22, 2024
@swsnr swsnr self-assigned this Nov 22, 2024
@swsnr swsnr changed the title mdcat Crash Report mdcat crashes on tasklists with nested paragraphs Nov 24, 2024
@swsnr
Copy link
Owner

swsnr commented Nov 24, 2024

I'm sorry for the inconvenience; luckily the fix is a simple one, and I should be able to publish a new release over the next few days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants