We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae74c20 commit 183b0dcCopy full SHA for 183b0dc
.vale.ini
@@ -3,7 +3,15 @@ MinAlertLevel = suggestion
3
4
Vocab = Docker
5
6
-Packages = Hugo
7
-
8
[*.md]
9
BasedOnStyles = Vale, Docker
+# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
+TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
10
+(\[.+\]\({{< .+ >}}\)), \
11
+[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
12
+[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s, \
13
+(?sm)({{[%<] .*?\s[%>]}})
14
+
15
+# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
16
+BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
17
+(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
0 commit comments