Skip to content

Commit 43ad0da

Browse files
authored
Merge pull request #8888 from quarto-dev/bugfix/8454
jupyter - allow mixed-case extensions in qmd file
2 parents 101bc0e + 9f57e69 commit 43ad0da

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

news/changelog-1.5.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ All changes included in 1.5:
4646
- ([#4802](https://github.com/quarto-dev/quarto-cli/issues/4802)): Change name of temporary input notebook to avoid accidental overwriting.
4747
- ([#8433](https://github.com/quarto-dev/quarto-cli/issues/8433)): Escape jupyter widget states that contain `</script>` so they can be embedded in HTML documents.
4848
- When searching for kernelspecs that match `python`, prefer one one that matches an active Python venv.
49+
- ([#8454](https://github.com/quarto-dev/quarto-cli/issues/8454)): Allow Jupyter engine to handle markdown files with mixed-case extensions.
4950

5051
## Website Listings
5152

src/execute/qmd.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import { extname } from "path/mod.ts";
88
import { kQmdExtensions } from "./types.ts";
99

1010
export function isQmdFile(file: string) {
11-
const ext = extname(file);
11+
const ext = extname(file).toLowerCase();
1212
return kQmdExtensions.includes(ext);
1313
}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: hello
3+
filters:
4+
- at: pre-ast
5+
path: preast.lua
6+
---
7+
8+
Hello world.
9+
10+
```{python}
11+
print(1 + 2)
12+
```

0 commit comments

Comments
 (0)