Skip to content
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

feat: Ignore tokens when they are in links or ref-links. #32

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Coop/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ StylesPath = styles
Vocab = CoopGeneral, CoopTech, CoopCompanies, CoopAbbreviations, CoopPeople, CoopSystems, CoopLocations, CoopTerms

[*.md]
TokenIgnores = [\w][\w.]*@[\w*][\w.]*[\w], <https://.+>, {{\sread_.+\(.+\)\s}}
TokenIgnores = [\w][\w.]*@[\w*][\w.]*[\w], <https://.+>, {{\sread_.+\(.+\)\s}}, \[.+\]\(.+\), \[.+\]\[.+\]
BasedOnStyles = Vale
24 changes: 24 additions & 0 deletions docs/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Testing of vale

The following examples should all pass Techdocs-validation, even though `IDP`
should normally be capitalized:

Example using IDP capitalized.

Example using [#team-idp](https://www.coop.no/) lowercase in a link.

Example using [#team-idp][idp-ref-link] lowercase in a ref-link.

Example using <https://idp> lowercase in a angle-bracket link.

Example using `idp` lowercase in an inline block.

```go
Example using idp in a code block.
```

<!-- vale off -->
Example using lowercase idp in vale-disabled block.
<!-- vale on -->

[idp-ref-link]: https://www.coop.no/