mdlint icon indicating copy to clipboard operation
mdlint copied to clipboard

Print line number relative to file instead of code block

Open ChrisWren opened this issue 12 years ago • 0 comments

As of right now, mdlint prints error with line numbers relative to a code block instead of the file.

It would be better to have the true line number to let users go to the line quickly in their markdown file rather than having to search for the code block in question.

Solving this issue requires updating the parseMarkdown function to keep track of the line number when parsing code blocks and then log that line number in the validateCodeBlock function.

ChrisWren avatar Aug 10 '13 19:08 ChrisWren