-
Notifications
You must be signed in to change notification settings - Fork 8.1k
_includes/cli.md: fix flag descriptions with < and > #12083
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
Conversation
StefanScherer
left a comment
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.
LGTM
|
Hmm, Netlify failed; doesn't look related, but not sure how to restart it |
|
close/reopen didn't seem to trigger it again; let me rebase/push |
Some flag descriptions contain point-brackets to indicate required
options, e.g.:
--ssh stringArray SSH agent socket or keys to expose to the build (format: default|<id>[=<socket>|<key>[,<key>]])
When rendering those options as HTML, those options were not visible as
they were rendered as a HTML element.
Given that flag-descriptions are not expected to have MarkDown or HTML
formatting, we can HTML-escape them to prevent this.
This patch escapes the flag-descriptions using liquid's `esacape` command.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
fd8cf8e to
ac39688
Compare
|
✔️ Deploy preview for docsdocker ready! 🔨 Explore the source changes: ac39688 🔍 Inspect the deploy logs: https://app.netlify.com/sites/docsdocker/deploys/5ffec14dd22ca500070cbc17 😎 Browse the preview: https://deploy-preview-12083--docsdocker.netlify.app |
|
All green now; @StefanScherer @usha-mandya ptal 🤗 |
usha-mandya
left a comment
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.
LGTM. Thanks @thaJeztah
fixes #11331
replaces / closes #12064
Some flag descriptions contain point-brackets to indicate required options, e.g.:
When rendering those options as HTML, those options were not visible as
they were rendered as a HTML element.
Given that flag-descriptions are not expected to have MarkDown or HTML
formatting, we can HTML-escape them to prevent this.
This patch escapes the flag-descriptions using liquid's
esacapecommand.Before this patch:
After this patch: