Skip to content

Commit

Permalink
Merge branch 'ValeHugoUpdate' into 'master'
Browse files Browse the repository at this point in the history
Automatic update of vale configuration for hugo

See merge request ogs/ogs!4876
  • Loading branch information
bilke committed Jan 17, 2024
2 parents ced92bb + 1742083 commit 66213e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Documentation/.vale/.vale-config/0-Hugo.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[*.md]
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
(\[.+\]\({{< .+ >}}\))
(\[.+\]\({{< .+ >}}\)), \
({{[%<] .+ [%>]}})

# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
BlockIgnores = (?sm)^({{[%<] [^{]*? [%>]}})\n$, \
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}}), \
({{[%<] .+ [%>]}})

0 comments on commit 66213e0

Please sign in to comment.