Span.Start is incorrect with text using CR instead of CRLF #342

Open
opened 2026-01-29 14:34:19 +00:00 by claunia · 0 comments
Owner

Originally created by @NeomMob on GitHub (Feb 4, 2020).

Hello,

I am using UsePreciseSourceLocation to get accurate positions in the source text. While it works fine with text having standard Windows line endings (CRLF), offsets are incorrect when using a text coming from a Mac (CR line ending).
Any idea how I could fix that issue?

Originally created by @NeomMob on GitHub (Feb 4, 2020). Hello, I am using `UsePreciseSourceLocation` to get accurate positions in the source text. While it works fine with text having standard Windows line endings (`CRLF`), offsets are incorrect when using a text coming from a Mac (`CR` line ending). Any idea how I could fix that issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#342