re-export parsec SourcePos accessors
frasertweedale opened this issue · 3 comments
frasertweedale commented
To deal robustly with source positions of document elements (e.g. for deletion or alteration) we need to be able to drill into the SourcePos
values in the SourceRange
. It is a bit of a nuisance to require a direct dependency on parsec to get at the
sourceLine
and sourceColumn
functions. Re-exporting them from commonmark would be very helpful!
jgm commented
Agreed.
jgm commented
Do you feel like making a PR?
frasertweedale commented
@jgm yeah I can do it. Will get to it some time in the next week.