-
Notifications
You must be signed in to change notification settings - Fork 64
OpenShiftAsciiDoc - no alphanumeric charaters in headings #987
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
base: main
Are you sure you want to change the base?
OpenShiftAsciiDoc - no alphanumeric charaters in headings #987
Conversation
|
🎊 Navigate the preview: https://redhat-documentation-vale-at-red-hat-987.surge.sh 🎊 |
a27e976 to
dfcd7f6
Compare
|
/lgtm |
| message: "Headings should only contain alphanumeric characters." | ||
| nonword: true | ||
| tokens: | ||
| - "^=+\\s+.*[^a-zA-Z0-9\\s\\{\\}'`-].*$" No newline at end of file |
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.
| - "^=+\\s+.*[^a-zA-Z0-9\\s\\{\\}'`-].*$" | |
| - "^=+\s+.*[^a-zA-Z0-9\s\{\}'`-].*$" |
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.
Don't need to escape here
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.
Scrapped this version and moving to a tengo script. It was flagging on admonition blocks
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.
btw, I recall that whatever flavour of regex Value uses required double escapes to work
| == No @Symbols! Here | ||
|
|
||
| //vale-fixture | ||
| == No periods. |
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.
Yes but Something like this is valid and gets caught too:
== Installing the .NET plugin
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.
Yeah... bit of a clash there I guess. Maybe need an exclusion list. Apparently periods in headings break something in PV1.
PV1 fails late in the build process if the headings aren't alphanumeric. It balks at even having periods in them.