mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
MarkdownDocument.FindClosestLine throws ArgumentOutOfRangeException sometimes #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @madskristensen on GitHub (Jun 21, 2016).
I assume it's when the line number passed into the method exceeds the line count of the MarkdownDocument. There is no way to determine the line count of the document in the API though. In MarkdownEditor I've put a try/catch block around it for now.
Here's the callstack:
It may be when the line contains pipe tables, but I'm not sure it's related.
@xoofx commented on GitHub (Jun 22, 2016):
This is fixed by commit
8220f0fa56