mirror of https://github.com/docker/docs.git
_includes/cli.md: fix flag descriptions with < and >
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>
This commit is contained in:
parent
3aa6f39660
commit
ac396880ec
|
@ -126,7 +126,7 @@ For example uses of this command, refer to the [examples section](#examples) bel
|
|||
<tr>
|
||||
<td markdown="span">`--{{ option.option }}{% if option.shorthand %} , -{{ option.shorthand }}{% endif %}`</td>
|
||||
<td markdown="span">{{ option-default }}</td>
|
||||
<td markdown="span">{% if all-badges != '' %}{{ all-badges | strip }}<br />{% endif %}{{ option.description | strip }}</td>
|
||||
<td markdown="span">{% if all-badges != '' %}{{ all-badges | strip }}<br />{% endif %}{{ option.description | strip | escape }}</td>
|
||||
</tr>
|
||||
{% endfor %} <!-- end for option -->
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue