Skip to content

Commit 7f429e3

Browse files
committed
test: pin issue 1007's frontmatter and blockquote scenarios
Signed-off-by: Joseph Kato <joseph@jdkato.io>
1 parent b049e35 commit 7f429e3

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎testdata/e2e/misc.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,40 @@ cases:
110110
test2.md:2:24:demo.Fancy:Change
111111
test2.md:2:40:write-good.E-Prime:Avoid using "there's"
112112
113+
- name: issue-1007
114+
about: "#1007 -- a term repeated later in the frontmatter or a blockquote
115+
doesn't pull the alert off its first occurrence, and every occurrence
116+
is reported"
117+
files:
118+
.vale.ini: |
119+
StylesPath = styles
120+
MinAlertLevel = suggestion
121+
Vocab = test-vocab
122+
123+
[*.md]
124+
BasedOnStyles = Vale
125+
styles/config/vocabularies/test-vocab/accept.txt: |
126+
CASTLE
127+
front.md: |
128+
---
129+
title: castle
130+
tags: ['castle', 'gitlab', 'sonarqube']
131+
weight: 8
132+
---
133+
134+
## Intro
135+
136+
Hello, I love a CASTLE.
137+
quote.md: |
138+
> Hello, I love a castle.
139+
> It's castle!
140+
args: front.md quote.md
141+
exit: 1
142+
want: |
143+
front.md:2:8:Vale.Terms:Use 'CASTLE' instead of 'castle'.
144+
quote.md:1:19:Vale.Terms:Use 'CASTLE' instead of 'castle'.
145+
quote.md:2:8:Vale.Terms:Use 'CASTLE' instead of 'castle'.
146+
113147
- name: nested-markup
114148
dir: misc/markup
115149
args: .

0 commit comments

Comments
 (0)