Skip to content

Commit bacc05f

Browse files
committed
Tests passing
1 parent 2428fb6 commit bacc05f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Hugo/.vale.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
33
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
44
(\[.+\]\({{< .+ >}}\)), \
5-
({{[%<] .+ [%>]}})
5+
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
6+
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s
67

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

testdata/shortcodes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Shortcodes are non-standard markup that appears within normal Markdown.
1111

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

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

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

19-
{{< myshortcode This is some <b>HTML</b>,. >}}
19+
{{< myshortcode This is some <b>HTML</b>,. >}}
2020

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

0 commit comments

Comments
 (0)