Skip to content

Commit 0cce1f2

Browse files
committed
new snaps
1 parent c2c15f6 commit 0cce1f2

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

crates/quarto-markdown-pandoc/snapshots/error-corpus/json/001.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ expression: json_string
88
"details": [
99
{
1010
"content": {
11-
"content": "This is the opening bracket for the span",
11+
"content": "This is the opening bracket for the span.",
1212
"type": "markdown"
1313
},
1414
"kind": "info",

crates/quarto-markdown-pandoc/snapshots/error-corpus/json/005.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ expression: json_string
88
"details": [
99
{
1010
"content": {
11-
"content": "This is the opening delimiter for the emphasis",
11+
"content": "This is the opening '_' mark.",
1212
"type": "markdown"
1313
},
1414
"kind": "info",
1515
"location": {
1616
"Original": {
1717
"end_offset": 12,
1818
"file_id": 0,
19-
"start_offset": 11
19+
"start_offset": 10
2020
}
2121
}
2222
}
@@ -33,6 +33,6 @@ expression: json_string
3333
"content": "I reached the end of the block before finding a closing '_' for the emphasis.",
3434
"type": "markdown"
3535
},
36-
"title": "Unclosed Emphasis"
36+
"title": "Unclosed Underscore Emphasis"
3737
}
3838
]

crates/quarto-markdown-pandoc/snapshots/error-corpus/json/007.snap

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ expression: json_string
55
[
66
{
77
"code": "Q-2-5",
8+
"details": [
9+
{
10+
"content": {
11+
"content": "This is the opening '_' mark.",
12+
"type": "markdown"
13+
},
14+
"kind": "info",
15+
"location": {
16+
"Original": {
17+
"end_offset": 2,
18+
"file_id": 0,
19+
"start_offset": 1
20+
}
21+
}
22+
}
23+
],
824
"kind": "error",
925
"location": {
1026
"Original": {
@@ -17,6 +33,6 @@ expression: json_string
1733
"content": "I reached the end of the block before finding a closing '_' for the emphasis.",
1834
"type": "markdown"
1935
},
20-
"title": "Unclosed Emphasis"
36+
"title": "Unclosed Underscore Emphasis"
2137
}
2238
]

crates/quarto-markdown-pandoc/snapshots/error-corpus/json/009.snap

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@ expression: json_string
55
[
66
{
77
"code": "Q-2-7",
8-
"details": [
9-
{
10-
"content": {
11-
"content": "This is the opening quote. If you need an apostrophe, escape it with a backslash.",
12-
"type": "markdown"
13-
},
14-
"kind": "info",
15-
"location": {
16-
"Original": {
17-
"end_offset": 5,
18-
"file_id": 0,
19-
"start_offset": 4
20-
}
21-
}
22-
}
23-
],
248
"kind": "error",
259
"location": {
2610
"Original": {

crates/quarto-markdown-pandoc/snapshots/error-corpus/text/001.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ expression: error_output
77
│
88
1 │ an [unclosed span
99
 │ ┬ ┬
10-
[38;5;240m │[0m [36m╰[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m This is the opening bracket for the span
10+
[38;5;240m │[0m [36m╰[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m This is the opening bracket for the span.
1111
 │ │
1212
 │ ╰── I reached the end of the block before finding a closing ']' for the span or link.
1313
───╯

crates/quarto-markdown-pandoc/snapshots/error-corpus/text/005.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
source: crates/quarto-markdown-pandoc/tests/test_error_corpus.rs
33
expression: error_output
44
---
5-
[31mError:[0m [Q-2-5] Unclosed Emphasis
5+
[31mError:[0m [Q-2-5] Unclosed Underscore Emphasis
66
╭─[resources/error-corpus/005.qmd:1:18]
77
│
8-
[38;5;246m1 │[0m [38;5;249mU[0m[38;5;249mn[0m[38;5;249mf[0m[38;5;249mi[0m[38;5;249mn[0m[38;5;249mi[0m[38;5;249ms[0m[38;5;249mh[0m[38;5;249me[0m[38;5;249md[0m[38;5;249m [0m[36m_[0m[38;5;249me[0m[38;5;249mm[0m[38;5;249mp[0m[38;5;249mh[0m[38;5;249m.[0m
9-
[38;5;240m │[0m [36m┬[0m [31m┬[0m
10-
[38;5;240m │[0m [36m╰[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m This is the opening delimiter for the emphasis
8+
[38;5;246m1 │[0m [38;5;249mU[0m[38;5;249mn[0m[38;5;249mf[0m[38;5;249mi[0m[38;5;249mn[0m[38;5;249mi[0m[38;5;249ms[0m[38;5;249mh[0m[38;5;249me[0m[38;5;249md[0m[36m [0m[36m_[0m[38;5;249me[0m[38;5;249mm[0m[38;5;249mp[0m[38;5;249mh[0m[38;5;249m.[0m
9+
[38;5;240m │[0m [36m─[0m[36m┬[0m [31m┬[0m
10+
[38;5;240m │[0m [36m╰[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m[36m─[0m This is the opening '_' mark.
1111
 │ │
1212
 │ ╰── I reached the end of the block before finding a closing '_' for the emphasis.
1313
───╯

crates/quarto-markdown-pandoc/snapshots/error-corpus/text/007.snap

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
source: crates/quarto-markdown-pandoc/tests/test_error_corpus.rs
33
expression: error_output
44
---
5-
[31mError:[0m [Q-2-5] Unclosed Emphasis
5+
[31mError:[0m [Q-2-5] Unclosed Underscore Emphasis
66
╭─[resources/error-corpus/007.qmd:1:11]
77
│
8-
1 │ [_document](a)
9-
 │ ┬
8+
1 │ [_document](a)
9+
 │ ┬ ┬
10+
 │ ╰─────────── This is the opening '_' mark.
11+
 │ │
1012
 │ ╰── I reached the end of the block before finding a closing '_' for the emphasis.
1113
───╯

crates/quarto-markdown-pandoc/snapshots/error-corpus/text/009.snap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ expression: error_output
55
Error: [Q-2-7] Unclosed Single Quote
66
╭─[resources/error-corpus/009.qmd:1:7]
77
│
8-
1 │ [`a`'s](b)
9-
 │ ┬ ┬
10-
 │ ╰──── This is the opening quote. If you need an apostrophe, escape it with a backslash.
11-
 │ │
8+
1 │ [`a`'s](b)
9+
 │ ┬
1210
 │ ╰── I reached the end of the block before finding a closing "'" for the quote.
1311
───╯

0 commit comments

Comments
 (0)