Incorrect Line/Column positions inside GridTable #744

Closed
opened 2026-01-29 14:44:34 +00:00 by claunia · 1 comment
Owner

Originally created by @messani on GitHub (Jul 11, 2025).

I have the following markdown:

XXX

+---+-------------------------------------------------------------------+
| A | B                                                                 |
+=======================================================================+
| C | [LinkA](http://example.com) |
+---+-------------------------------------------------------------------+
| D | E                                                                 |
+---+-------------------------------------------------------------------+

a | b
-- | -
0 | [LinkB](http://example.com)


YYY

The line and column reported for the link inside the PipeTable (LinkB) are correct: Line 12, Column 4.
However, the link inside the GridTable (LinkA) is incorrectly reported at Line 5, Column 1.

I tried to fix this issue, but since I had to spend some time learning how the code works, my fix is probably not clean or stable enough for a pull request.
You can find it here, in my forked repository:
https://github.com/messani/markdig

Can you please fix it?

Originally created by @messani on GitHub (Jul 11, 2025). I have the following markdown: ``` XXX +---+-------------------------------------------------------------------+ | A | B | +=======================================================================+ | C | [LinkA](http://example.com) | +---+-------------------------------------------------------------------+ | D | E | +---+-------------------------------------------------------------------+ a | b -- | - 0 | [LinkB](http://example.com) YYY ``` The line and column reported for the link inside the PipeTable (LinkB) are correct: Line 12, Column 4. However, the link inside the GridTable (LinkA) is incorrectly reported at Line 5, Column 1. I tried to fix this issue, but since I had to spend some time learning how the code works, my fix is probably not clean or stable enough for a pull request. You can find it here, in my forked repository: https://github.com/messani/markdig Can you please fix it?
claunia added the bugPR Welcome! labels 2026-01-29 14:44:35 +00:00
Author
Owner

@xoofx commented on GitHub (Jul 11, 2025):

Many non CommonMark extensions in markdig are not properly reporting source location, so they need to be fixed.

Can you please fix it?

This is an OSS project, and I don't have incentive/personal time dedicated to fix this problem, so it will have to come from a contributor.

@xoofx commented on GitHub (Jul 11, 2025): Many non CommonMark extensions in markdig are not properly reporting source location, so they need to be fixed. > Can you please fix it? This is an OSS project, and I don't have incentive/personal time dedicated to fix this problem, so it will have to come from a contributor.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#744