-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add Fenced Div and Link Validation Step #255
Conversation
Yep it works and has already helped me identify several things that had slipped through/accessibility improvements 🙌 I should have recognised the intentional addition of issues to be detected as the act of hubris it was 😆 Thanks @zkamvar! The only improvement I can suggest is to make the reasons given even more explicit, e.g. |
That's wonderful! I will note that some of these are false positives (all the items with missing line numbers are actually labels for anchor links), but I will address them on the {pegboard} end. |
@tobyhodges would you be willing to give this your approval for merging? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, yes. Approved now. Thanks for your patience!
No patience was required on my part! Thank you for testing this out! |
Summary
This PR adds pre-build lesson validation for the following elements:
These are implemented for both
serve()
(which impliesbuild_lesson()
) andci_deploy()
(which will produce warnings in a manner that GitHub will understand and point to the line in the file).This PR will fix #254
Testing
To test this PR, use:
Examples
This is something you might see when you have a link that points to a file that doesn’t exist:
Created on 2022-02-17 by the reprex package (v2.0.1)
Including `heading = TRUE` (is a bit noisy)
Created on 2022-02-17 by the reprex package (v2.0.1)