File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 2
2
BasedOnStyles = Vale
3
3
4
4
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
5
- TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
6
- (\[.+\]\({{< .+ >}}\)), \
7
- ({{[%<] .+ [%>]}})
5
+ TokenIgnores = ({{[%<](?:/\*)? .* (?:\*/)? [%>]}}.*?{{[%<](?:/\*| ) ?/.* (?:\*/)? [%>]}}), \
6
+ (\[.+\]\({{<(?:/\*)? .+ (?:\*/)? >}}\)), \
7
+ ({{[%<](?:/\*)? .+ (?:\*/)? [%>]}})
8
8
9
9
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
10
- BlockIgnores = (?sm)^({{[%<] [^{]*? [%>]}})\n$, \
11
- (?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}}), \
12
- ({{[%<] .+ [%>]}})
10
+ BlockIgnores = (?sm)^({{[%<](?:/\*)? [^{]*? (?:\*/)? [%>]}})\n$, \
11
+ (?s) *({{<(?:/\*)? highlight [^>]*(?:\*/| ) ?>}}.*?{{<(?:/\*| ) ?/ ?highlight (?:\*/)? >}}), \
12
+ ({{[%<](?:/\*)? .+ (?:\*/)? [%>]}})
Original file line number Diff line number Diff line change @@ -60,3 +60,11 @@ Shortcodes are non-standard markup that appears within normal Markdown.
60
60
Shortcodes can be used {{< myshortcode src="/media/spf13.jpg" title="Steve Francia" >}} inside a paragraph.
61
61
62
62
Shortcodes are non-standard markup that appears within normal Markdown.
63
+
64
+ To escape shortcodes, use the Hugo comment syntax.
65
+ For example:
66
+
67
+ - {{</* commentedoutshortcode * />}}
68
+ - {{</* /closecommentedoutshortcode * />}}
69
+ - {{%/* commentedoutshortcodemd * /%}}
70
+ - {{%/* /closecommentedoutshortcodemd * /%}}
Original file line number Diff line number Diff line change 1
1
$ cdf ${ROOTDIR}/shortcodes
2
- $ vale --output=line --sort --normalize --relative --no-exit test.md
2
+ $ vale --config .vale.ini -- output=line --sort --normalize --relative --no-exit test.md
3
3
test.md:1:3:Vale.Spelling:Did you really mean 'Shortcodes'?
4
4
test.md:3:3:Vale.Spelling:Did you really mean 'Shortcodes'?
5
5
test.md:8:1:Vale.Spelling:Did you really mean 'Shortcodes'?
@@ -15,3 +15,4 @@ test.md:54:1:Vale.Spelling:Did you really mean 'Shortcodes'?
15
15
test.md:58:1:Vale.Spelling:Did you really mean 'Shortcodes'?
16
16
test.md:60:1:Vale.Spelling:Did you really mean 'Shortcodes'?
17
17
test.md:62:1:Vale.Spelling:Did you really mean 'Shortcodes'?
18
+ test.md:64:11:Vale.Spelling:Did you really mean 'shortcodes'?
You can’t perform that action at this time.
0 commit comments