gitlab-ce/doc/.vale/gitlab_docs/InternalLinkCase.yml

13 lines
386 B
YAML

---
name: gitlab_docs.InternalLinkCase
description: |
Checks that anchor fragments on internal links are in lower-case.
extends: existence
message: "Use lowercase for the anchor link."
link: https://docs.gitlab.com/development/documentation/styleguide/#anchor-links
vocab: false
level: error
scope: raw
raw:
- '(?<!\`)\[[^\[\]]+\]\((?!https?:)[^\)]*?#[^\s\)]*?[A-Z][^\)]*?\)(?!\`)'