Skip to content

Commit 6419162

Browse files
dvdksnclaude
andcommitted
vale: ignore shortcodes inside markdown links via BlockIgnores
The previous TokenIgnores pattern only caught isolated shortcodes and couldn't handle markdown links whose text or URL contained a shortcode, because TokenIgnores can't span multiple tokens. Moving that pattern into BlockIgnores lets it match across whitespace. Also widen the inner pattern from `{{[%<]…[%>]}}` to `{{[^}]+}}` so Go template actions (`{{- $url := … }}`, `{{ .Content }}`) inside .inline shortcode blocks are ignored too. Fixes spurious URL/term hits in the engine/install pages and the docker-agent examples. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 44e7534 commit 6419162

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.vale.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Vale.Terms = NO
3232

3333
[*.md]
3434
BasedOnStyles = Docker, Vale
35-
TokenIgnores = ({{[%<][^}]+[%>]}}\S*), (\[[^\]]*{{[%<][^}]+[%>]}}[^\]]*\]\([^)]*\))
36-
BlockIgnores = (?m)^[ \t]*({{[%<][^}]+[%>]}})[ \t]*$
35+
TokenIgnores = ({{[^}]+}}\S*)
36+
BlockIgnores = (?m)^[ \t]*({{[^}]+}})[ \t]*$, (\[[^\]]*{{[^}]+}}[^\]]*\]\([^)]*\))

0 commit comments

Comments
 (0)