Skip to content

Commit 1805c0c

Browse files
committed
update changelog; tweaks
1 parent 6df91d7 commit 1805c0c

File tree

7 files changed

+37
-5
lines changed

7 files changed

+37
-5
lines changed

apps/vscode/.vscode-test.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
import { defineConfig } from '@vscode/test-cli';
2+
import { execSync } from 'child_process';
3+
4+
const quartoPath = execSync('which quarto', {
5+
encoding: 'utf-8'
6+
}).trim();
7+
8+
const quartoVersion = execSync(`${quartoPath} --version`, {
9+
encoding: 'utf-8',
10+
}).trim();
11+
12+
console.info(`
13+
========================================
14+
Quarto Path: ${quartoPath}
15+
Quarto Version: ${quartoVersion}
16+
========================================
17+
`);
218

319
export default defineConfig([
420
{

apps/vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 1.125.0 (Unreleased)
44

5+
- Fixed an issue where attribute values containing '='s could be truncated in some scenarios (<https://github.com/quarto-dev/quarto/pull/814>).
6+
57
## 1.124.0 (Release on 2025-08-20)
68

79
- Fix Base64 leak when no empty line between text and code block (<https://github.com/quarto-dev/quarto/pull/780>).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*_files

apps/vscode/src/test/examples/attr-equals.qmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This test document validates that equals signs in attribute values are handled correctly.
44

5+
This prose contains some equals signs, just in case. A=B=C. D=E=F. =
6+
57
## Basic examples
68

79
- Basic link with equals in value: [Link text](https://example.com){key=value=with=equals}
@@ -10,6 +12,8 @@ This test document validates that equals signs in attribute values are handled c
1012

1113
- Span with complex value: [Span text]{#id .class key=complex=value}
1214

15+
- Other weird examples: [Span text](key=) [Span](===)
16+
1317
## More complex examples
1418

1519
- CSS style with equals: [Styled text]{style=color:red;font-size=12px}
@@ -45,4 +49,4 @@ This is a div with multiple equals signs in attribute values.
4549
| A | B |
4650
| C | D |
4751

48-
: Table caption {#tbl-id tbl-colwidths="[50,50]" key=value=with=equals}
52+
: Table caption {#tbl-id tbl-colwidths="[50,50]" key=value=with=equals}

apps/vscode/src/test/examples/generated_snapshots/roundtripped-attr-equals.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This test document validates that equals signs in attribute values are handled correctly.
44

5+
This prose contains some equals signs, just in case. A=B=C. D=E=F. =
6+
57
## Basic examples
68

79
- Basic link with equals in value: [Link text](https://example.com){key="value=with=equals"}
@@ -10,6 +12,8 @@ This test document validates that equals signs in attribute values are handled c
1012

1113
- Span with complex value: [Span text]{#id .class key="complex=value"}
1214

15+
- Other weird examples: [Span text](key=) [Span](===)
16+
1317
## More complex examples
1418

1519
- CSS style with equals: [Styled text]{style="color:red;font-size=12px"}

packages/editor/src/api/pandoc_attr.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,13 @@ export function pandocAttrKeyvalueFromText(text: string, separator: ' ' | '\n'):
312312
const lines = text.trim().split('\n');
313313
return lines.map(line => {
314314
const idx = line.indexOf('=');
315-
const lhs = line.substring(0, idx).trim();
316-
const rhs = line.substring(idx + 1).trim();
317-
return [lhs, rhs.replace(/^"/, '').replace(/"$/, '')];
315+
if (idx === -1) {
316+
return [line.trim(), ""]
317+
} else {
318+
const lhs = line.substring(0, idx).trim();
319+
const rhs = line.substring(idx + 1).trim();
320+
return [lhs, rhs.replace(/^"/, '').replace(/"$/, '')];
321+
}
318322
});
319323
}
320324

packages/quarto-core/src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function scanForQuarto(additionalSearchPaths?: string[]): QuartoInstallation | u
206206
}
207207
scanPaths.push("C:\\Program Files\\RStudio\\bin\\quarto\\bin");
208208
} else if (os.platform() === "darwin") {
209-
scanPaths.push("/Applications/quarto/bin/");
209+
scanPaths.push("/Applications/quarto/bin");
210210
const home = process.env.HOME;
211211
if (home) {
212212
scanPaths.push(path.join(home, "Applications", "quarto", "bin"));

0 commit comments

Comments
 (0)