-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Allow skipping line length checks for link-only lines #591
Comments
Thanks for opening the issue, @jhlegarreta. You're correct in that |
Thanks @maxim-belkin . In my issue, when mentioning links I meant images, i.e. lines like:
or
but the way such lines are built in our case is maybe not correctly handled by the current implementation. But yes, the comment would ideally apply to any kind of link. |
I submitted #594 that should allow these exceptions. Note, that if desired you can go under the line length limit even now using...
and some Liquid magic for very long alt. texts:
Technically, you can go even further
but, as you can see, it's a very small improvement (the longest line is still pretty long) |
bin/lesson_check.py: allow exceptions to line length limit Fixes #591
Thanks for these helpful explanations @maxim-belkin 💯. |
@jhlegarreta, I'm reopening this issue since #594 hasn't fixed the issue completely for you. I'll comment about why this happened there. |
lesson_check.py: harden single-line image/link pattern Fixes #591
The
make leson-check-all
script checks the line lengths of the Markdown files. If I'm not mistaken by the check results, lines containing only links dot not raise warnings if exceeding the allowed line length. However, such warnings are indeed raised for lines containing only links in the solution blocks.Please correct me if I'm wrong, but I believe that links cannot be split across lines.
Below are some examples of such warnings:
The GitHub badge links on file
https://raw.githubusercontent.com/carpentries-incubator/SDC-BIDS-dMRI/main/README.md
pointed in
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/runs/2438761253?check_suite_focus=true#step:16:19
Line 456 on file
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/blob/99dd1d1235e78bf940c4728974635fec5a00fabc/_episodes/constrained_spherical_deconvolution.md
pointed in
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/runs/2438761253?check_suite_focus=true#step:16:20
Line 314 on file
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/blob/99dd1d1235e78bf940c4728974635fec5a00fabc/_episodes/deterministic_tractography.md
pointed in
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/runs/2438761253?check_suite_focus=true#step:16:21
Thus, ideally the checker should ideally skip such lines/avoid raising warnings for such lines even in the
solution
block quotes (or any other relevant block quotes).Thanks.
The text was updated successfully, but these errors were encountered: