elastic / crd-ref-docs

Generates Kubernetes CRD API reference documentation
Apache License 2.0
103 stars 53 forks source link

bug(adoc): validation pattern is rendered in bold when containing asteriskes #61

Closed tenstad closed 8 months ago

tenstad commented 8 months ago

[a-z]*-[a-z]* is rendered as -[a-z] (bold)

Should look into escaping the asterix

tenstad commented 8 months ago

In the GitLab renderer, it appears every other asterix should be escaped 🤔

Pattern: `[a]\*[b]\*[c]\*[d][a]\*[b]\*[c]\*[d]` +
Pattern: `[a]\*[b]*[c]\*[d][a]*[b]\*[c]*[d]` +
Pattern: `[a]*[b]*[c]*[d][a]*[b]*[c]*[d]` +
Pattern: [a]*[b]\*[c]*[d][a]\*[b]*[c]\*[d]
Pattern: [a]*[b]*[c]*[d][a]*[b]*[c]*[d]
Pattern: [b][c][d][a][b][c][d]

Which matches the example in https://docs.asciidoctor.org/asciidoc/latest/subs/prevent/#escape-with-backslashes