mirror of https://github.com/docker/docs.git
vale: improve ignores for hugo markup
Shortcode tags spanning over multiple lines were not being ignored Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
ae74c20dde
commit
183b0dcdd0
12
.vale.ini
12
.vale.ini
|
@ -3,7 +3,15 @@ MinAlertLevel = suggestion
|
|||
|
||||
Vocab = Docker
|
||||
|
||||
Packages = Hugo
|
||||
|
||||
[*.md]
|
||||
BasedOnStyles = Vale, Docker
|
||||
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
|
||||
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
|
||||
(\[.+\]\({{< .+ >}}\)), \
|
||||
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
|
||||
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s, \
|
||||
(?sm)({{[%<] .*?\s[%>]}})
|
||||
|
||||
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
|
||||
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
|
||||
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
|
||||
|
|
Loading…
Reference in New Issue