Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report line number pre-expansion of includes #57

Open
sanmai-NL opened this issue Apr 28, 2021 · 3 comments
Open

Report line number pre-expansion of includes #57

sanmai-NL opened this issue Apr 28, 2021 · 3 comments

Comments

@sanmai-NL
Copy link

The line numbers output by mdbook-linkcheck are off when the document file containers mdbook-includes. (Also) mention the line numbers prior to expansions.

@Michael-F-Bryan
Copy link
Owner

I'm not sure whether this is possible because by the time mdbook-linkcheck receives the book's contents it has already expanded any includes a chapter may contain.

@sanmai-NL
Copy link
Author

You do have the source files though. Is it possible to get the source line numbers from the pipeline/API?

@Michael-F-Bryan
Copy link
Owner

That information isn't passed along when the includes get expanded so we would be forced to use something unreliable like string comparisons or searches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants