Skip to content

Commit

Permalink
Tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Mar 22, 2024
1 parent 2428fb6 commit bacc05f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Hugo/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
(\[.+\]\({{< .+ >}}\)), \
({{[%<] .+ [%>]}})
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s

# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
BlockIgnores = (?sm)^({{[%<] [^{]*? [%>]}})\n$, \
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}}), \
({{[%<] .+ [%>]}})
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
4 changes: 2 additions & 2 deletions testdata/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Shortcodes are non-standard markup that appears within normal Markdown.

Shortcodes are non-standard markup that appears within normal Markdown.

{{< myshortcode This is some <b>HTML</b>,
{{< myshortcode This is some <b>HTML</b>,
and a new line with a "quoted string". >}}

Shortcodes are non-standard markup that appears within normal Markdown.

{{< myshortcode This is some <b>HTML</b>,. >}}
{{< myshortcode This is some <b>HTML</b>,. >}}

Shortcodes are non-standard markup that appears within normal Markdown.

Expand Down

0 comments on commit bacc05f

Please sign in to comment.