You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used Sublime Text to find and replace by regular expression with these values, it looks correct but I haven't checked everything (updated the 20/05/2024): Find: name="([^"]*)" Replace: name="\L\1\E"
and Find: ]\(#([^)]*)\) Replace: ](#\L\1\E)
The text was updated successfully, but these errors were encountered:
Lob2018
changed the title
C++ Core Guidelines Markdown explicit anchor links not working
C++ Core Guidelines Markdown explicit anchor links not working (updated the 20/05/2024)
May 20, 2024
A small Python program that checks that links, internal links, and anchors, are lowercase without spaces (it could be used as a basis with GitHub Actions in the future see #2210 (comment)); I fixed the errors (see the .diff).
The CppCoreGuidelines.md file must be in the same folder of ChecksLinksAndAnchorsFromCppCoreGuidelinesInCurrentDirectory.py.
Error examples:
fixed :
Error on line 13828: the href link 'Rper-reason' is not in lowercase.
Error on line 13829: the href link 'Rper-Knuth' is not in lowercase.
Error on line 22113: the href link 'S-abstract' is not in lowercase. and by the way (not fixed) :
Error on line 2931: the internal link '???' is not in lowercase.
Error on line 3673: the internal link '???' is not in lowercase.
Error on line 3781: the internal link '???' is not in lowercase.
Error on line 3796: the internal link '???' is not in lowercase.
Error on line 3796: the internal link '???' is not in lowercase.
Error on line 5606: the internal link '???' is not in lowercase.
Error on line 8184: the internal link '???' is not in lowercase.
Error on line 11168: the internal link '???' is not in lowercase.
Error on line 15607: the internal link '???' is not in lowercase.
Error on line 20346: the internal link '???' is not in lowercase.
Error on line 20503: the internal link '???' is not in lowercase.
Error on line 20504: the internal link '???' is not in lowercase.
Error on line 20527: the internal link '???' is not in lowercase.
Error on line 20528: the internal link '???' is not in lowercase.
Error on line 20529: the internal link '???' is not in lowercase.
Error on line 20530: the internal link '???' is not in lowercase.
Error on line 20531: the internal link '???' is not in lowercase.
Error on line 20532: the internal link '???' is not in lowercase.
Thanks again for your document C++ Core Guidelines.
Markdown links for C++ Core Guidelines Markdown don't work because anchor test must always be lowercase and not contain spaces, as describe in this article.
I used Sublime Text to find and replace by regular expression with these values, it looks correct but I haven't checked everything (updated the 20/05/2024):
Find: name="([^"]*)"
Replace: name="\L\1\E"
and
Find: ]\(#([^)]*)\)
Replace: ](#\L\1\E)
Attached the .diff, the modified and the old Markdown files :
CppCoreGuidelines - old.md
CppCoreGuidelines.diff.txt
CppCoreGuidelines.md
The text was updated successfully, but these errors were encountered: