Skip to content
Snippets Groups Projects
Commit 33f5a634 authored by Artur Sabirov's avatar Artur Sabirov Committed by Yaroslav Dynnikov
Browse files

feat: validate anchors in links

A markdown header may be attributed with [attr_list]. We use it for
linking to a specific header explicitly:

    ## Общие сведения {: #intro }
    См. [Общие сведения](#intro)

This patch enables links and headers validation:

- `check_headers.py` collects a list of existing anchors and checks
  there are no duplicates

- `check_links.py` validates links and checks the anchor exists

[attr_list]: https://python-markdown.github.io/extensions/attr_list/
parent 5e298fd5
No related branches found
No related tags found
1 merge request!257feat: validate anchors in links
Pipeline #30426 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment