Skip to content

Commit d6ead2b

Browse files
authored
fix: add blockignore for specific directives
1 parent 16d73a7 commit d6ead2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vale.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,7 @@ TokenIgnores = (.. \w+::)
5252
TokenIgnores = (:\w+: \w+), (:\w+:)
5353

5454
# links defined elsewhere
55-
TokenIgnores = (\`\w+\`_)
55+
TokenIgnores = (\`\w+\`_)
56+
57+
# Spelling not respecting code blocks
58+
BlockIgnores = (?s)\.\. (code-block|code|sourcecode|terminal|toctree):: ?[^\n]*\n( *:[\w-]+: *[^\n]+\n)*\n( +[^\n]+\n|\n)*

0 commit comments

Comments
 (0)