[Bug?] Possible incorrect parsing in markdig #665

Closed
opened 2026-01-29 14:42:31 +00:00 by claunia · 2 comments
Owner

Originally created by @nopeless on GitHub (Mar 18, 2024).

Somehow I found the bug in Show-Markdown which lead me to Powershell/MarkdownRenderer which lead me to here

https://github.com/PowerShell/MarkdownRender/issues/24

I am not a consumer of markdig, but by the way the renderer works I highly suspect that the incorrect renders are from this library

1. [links](#features)
2. `inline code`
3. normal text
4. line

- `also happens in ul`
- line

image

Output on my terminal

Originally created by @nopeless on GitHub (Mar 18, 2024). Somehow I found the bug in `Show-Markdown` which lead me to [`Powershell/MarkdownRenderer`](https://github.com/PowerShell/MarkdownRender) which lead me to here https://github.com/PowerShell/MarkdownRender/issues/24 I am not a consumer of markdig, but by the way the renderer works I highly suspect that the incorrect renders are from this library ```md 1. [links](#features) 2. `inline code` 3. normal text 4. line - `also happens in ul` - line ``` ![image](https://github.com/xoofx/markdig/assets/38830903/d67eae49-0071-4763-828e-066e7740c70a) Output on my terminal
Author
Owner

@nopeless commented on GitHub (Mar 18, 2024):

if it's not an issue from this library let me know. I don't know how to test it

@nopeless commented on GitHub (Mar 18, 2024): if it's not an issue from this library let me know. I don't know how to test it
Author
Owner

@MihaZupan commented on GitHub (Mar 18, 2024):

Markdig is working correctly here: https://babelmark.github.io/?text=1.+%5Blinks%5D(%23features)%0A2.+%60inline+code%60%0A3.+normal+text%0A4.+line%0A%0A-+%60also+happens+in+ul%60%0A-+line

This is likely a bug in Powershell/MarkdownRenderer, likely here 8be5371470/src/ListBlockRenderer.cs (L36) (rendering the inline without the block itself)

@MihaZupan commented on GitHub (Mar 18, 2024): Markdig is working correctly here: https://babelmark.github.io/?text=1.+%5Blinks%5D(%23features)%0A2.+%60inline+code%60%0A3.+normal+text%0A4.+line%0A%0A-+%60also+happens+in+ul%60%0A-+line This is likely a bug in Powershell/MarkdownRenderer, likely here https://github.com/PowerShell/MarkdownRender/blob/8be5371470e57c106c4eb5e6297115741dfcd8ba/src/ListBlockRenderer.cs#L36 (rendering the inline without the block itself)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#665