Skip to content

Commit 9a66d2a

Browse files
committed
Merge branch 'main' into bugfix/no-env-set-past-startup
2 parents 6028e0b + 094db5c commit 9a66d2a

92 files changed

Lines changed: 6893 additions & 4534 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-ff-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
- name: Install uv for Python
118118
uses: astral-sh/setup-uv@v3
119119
with:
120-
version: "0.4.30"
120+
version: "0.7.4"
121121
enable-cache: true
122122
cache-dependency-glob: "tests/uv.lock"
123123

.github/workflows/test-smokes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
- name: Install uv for Python
146146
uses: astral-sh/setup-uv@v3
147147
with:
148-
version: "0.5.9"
148+
version: "0.7.4"
149149
enable-cache: true
150150
cache-dependency-glob: "tests/uv.lock"
151151

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"name": "Run Quarto test",
3737
"request": "launch",
3838
"type": "node",
39-
"program": "smoke/smoke-all.test.ts", // test script here
39+
"program": "smoke/logging/log-level-direct.test.ts", // test script here
4040
"args": [], // args to the script here, like in command line smoke/smoke-all.test.t -- .\docs\smoke-all\2023\01\19\2107.qmd
4141
"cwd": "${workspaceFolder}/tests",
4242
"runtimeExecutable": "${workspaceFolder}/package/dist/bin/tools/deno",

dev-docs/feature-format-matrix/qmd-files/mermaid/document.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ format:
44
docusaurus-md: {}
55
---
66

7-
::: content-visible when-format="docusaurus-md"
7+
::: {.content-visible when-format="docusaurus-md"}
88
This works, but emits a fairly-wonky markdown and doesn't use Javascript rendering.
99
:::
1010

news/changelog-1.8.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All changes included in 1.8:
55
- ([#6607](https://github.com/quarto-dev/quarto-cli/issues/6607)): Add missing beamer template update for beamer theme options: `colorthemeoptions`, `fontthemeoptions`, `innerthemeoptions` and `outerthemeoptions`.
66
- ([#12625](https://github.com/quarto-dev/quarto-cli/pull/12625)): Fire resize event on window when light/dark toggle is clicked, to tell widgets to resize.
77
- ([#12657](https://github.com/quarto-dev/quarto-cli/pull/12657)): Load Giscus in generated script tag, to avoid wrong-theming in Chrome.
8+
- ([#12780](https://github.com/quarto-dev/quarto-cli/issues/12780)): `keep-ipynb: true` now works again correctly and intermediate `.quarto_ipynb` is not removed.
89

910
## Formats
1011

@@ -18,6 +19,8 @@ All changes included in 1.8:
1819
- ([#12734](https://github.com/quarto-dev/quarto-cli/issues/12734)): `highlight-style` now correctly supports setting a different `light` and `dark`.
1920
- ([#12747](https://github.com/quarto-dev/quarto-cli/issues/12747)): Ensure `th` elements are properly restored when Quarto's HTML table processing is happening.
2021
- ([#12766](https://github.com/quarto-dev/quarto-cli/issues/12766)): Use consistent equation numbering display for `html-math-method` and `html-math-method.method` for MathJax and KaTeX (author: @mcanouil)
22+
- ([#12797](https://github.com/quarto-dev/quarto-cli/issues/12797)): Allow light and dark brands to be specified in one file, by specializing colors with `light:` and `dark:`.
23+
- ([#12919](https://github.com/quarto-dev/quarto-cli/issues/12919)): Ensure `kbd` shortcode output has hover tooltip.
2124

2225
### `revealjs`
2326

@@ -32,11 +35,16 @@ All changes included in 1.8:
3235
- ([#12554](https://github.com/quarto-dev/quarto-cli/pull/12554)): CSS properties `font-weight` and `font-style` are translated to Typst `text` properties.
3336
- ([#12695](https://github.com/quarto-dev/quarto-cli/issues/12695)): Resolve Typst `font-paths` that start with `/` relative to project root.
3437
- ([#12739](https://github.com/quarto-dev/quarto-cli/pull/12739)): Remove unused variable `heading-background-color` and `heading-decoration` from Typst's templates. They are leftover from previous change, and not part of Brand.yml schema for typography of headings.
38+
- ([#12815](https://github.com/quarto-dev/quarto-cli/issues/12815)): Do not crash when floats have no content.
3539

3640
### `beamer`
3741

3842
- ([#12775](https://github.com/quarto-dev/quarto-cli/issues/12775)): Convert Quarto-native layouts (divs with `layout` syntax) to Beamer columns, equivalent to using the Pandoc-native syntax of div with `columns` and `column` classes.
3943

44+
### `hugo-md`
45+
46+
- ([#12676](https://github.com/quarto-dev/quarto-cli/issues/12676)): Add support for rendering layout panels that are not floats.
47+
4048
## Projects
4149

4250
### `website`
@@ -52,14 +60,36 @@ All changes included in 1.8:
5260
## Lua Filters
5361

5462
- ([#12727](https://github.com/quarto-dev/quarto-cli/issues/12727)): Do not crash in the presence of malformed tabset contents.
63+
- ([#12806](https://github.com/quarto-dev/quarto-cli/pull/12806)): Use pandoc APIs to handle codepage conversion on Windows.
64+
- ([#12811](https://github.com/quarto-dev/quarto-cli/pull/12811)): Add support for YouTube Shorts in `video` shortcode.
5565

5666
## Commands
5767

5868
### `inspect`
5969

6070
- ([#12733](https://github.com/quarto-dev/quarto-cli/issues/12733)): Add installed extensions to `quarto inspect` project report.
6171

72+
### `add`
73+
74+
- ([#12627](https://github.com/quarto-dev/quarto-cli/issues/12627)): Don't actually install extension when user responds `yes` to first prompt but `no` to second.
75+
76+
## Engines
77+
78+
### `jupyter`
79+
80+
- ([#12753](https://github.com/quarto-dev/quarto-cli/issues/12753)): Support change in IPython 9+ and import `set_matplotlib_formats` from `matplotlib_inline.backend_inline` in the internal `setup.py` script used to initialize rendering with Jupyter engine.
81+
- ([#12839](https://github.com/quarto-dev/quarto-cli/issues/12839)): Support for `plotly.py` 6+ which now loads plotly.js using a cdn in script as a module.
82+
83+
### `knitr`
84+
85+
- Correctly detect R binary on Windows when `R_HOME` is set - this fixes issue with `quarto::quarto_render()` that will now correctly use the same R version as the R session it is called from.
86+
87+
### `julia`
88+
89+
- ([#12870](https://github.com/quarto-dev/quarto-cli/pull/12870)): Update `julia` engine from `0.17.0` to `0.17.3` to improve `juliaup` detection on Windows systems and correctly set `Base.source_path()` output to match REPL and script usage.
90+
6291
## Other fixes and improvements
6392

6493
- ([#11321](https://github.com/quarto-dev/quarto-cli/issues/11321)): Follow [recommendation from LaTeX project](https://latex-project.org/news/latex2e-news/ltnews40.pdf) and use `lualatex` instead of `xelatex` as the default PDF engine.
65-
- ([#12782](https://github.com/quarto-dev/quarto-cli/pull/12782)): fix bug on `safeRemoveDirSync`'s detection of safe directory boundaries.
94+
- ([#12782](https://github.com/quarto-dev/quarto-cli/pull/12782)): fix bug on `safeRemoveDirSync`'s detection of safe directory boundaries.
95+
- ([#12853](https://github.com/quarto-dev/quarto-cli/issues/12853)): fix replaceAll() escaping issue with embedded notebooks containing `$` in their Markdown.

package/src/common/update-html-dependencies.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -820,63 +820,63 @@ async function updateBootstrapFromBslib(
820820
for (let line of varContents) {
821821
line = line.replaceAll(
822822
"var(--#{$prefix}font-sans-serif)",
823-
"$font-family-sans-serif"
823+
"$$font-family-sans-serif"
824824
);
825825
line = line.replaceAll(
826826
"var(--#{$prefix}font-monospace)",
827-
"$font-family-monospace"
827+
"$$font-family-monospace"
828828
);
829829
line = line.replaceAll(
830830
"var(--#{$prefix}success-rgb)",
831-
"$success"
831+
"$$success"
832832
);
833833
line = line.replaceAll(
834834
"var(--#{$prefix}danger-rgb)",
835-
"$danger"
835+
"$$danger"
836836
);
837837
line = line.replaceAll(
838838
"var(--#{$prefix}body-color-rgb)",
839-
"$body-color"
839+
"$$body-color"
840840
);
841841
line = line.replaceAll(
842842
"var(--#{$prefix}body-bg-rgb)",
843-
"$body-bg"
843+
"$$body-bg"
844844
);
845845
line = line.replaceAll(
846846
"var(--#{$prefix}emphasis-color-rgb)",
847-
"$body-emphasis-color"
847+
"$$body-emphasis-color"
848848
);
849849
line = line.replaceAll(
850850
/RGBA?\(var\(--#\{\$prefix\}emphasis-color-rgb,(.*?)\).*?\)/gm,
851-
"$body-emphasis-color"
851+
"$$body-emphasis-color"
852852
);
853853
line = line.replaceAll(
854854
"var(--#{$prefix}secondary-color)",
855-
"$body-secondary-color"
855+
"$$body-secondary-color"
856856
);
857857
line = line.replaceAll(
858858
"var(--#{$prefix}secondary-bg)",
859-
"$body-secondary-bg"
859+
"$$body-secondary-bg"
860860
);
861861
line = line.replaceAll(
862862
"var(--#{$prefix}tertiary-bg)",
863-
"$body-tertiary-bg"
863+
"$$body-tertiary-bg"
864864
);
865865
line = line.replaceAll(
866866
"var(--#{$prefix}tertiary-color)",
867867
"$body-tertiary-color"
868868
);
869869
line = line.replaceAll(
870870
"var(--#{$prefix}emphasis-bg)",
871-
"$body-emphasis-bg"
871+
"$$body-emphasis-bg"
872872
);
873873
line = line.replaceAll(
874874
"var(--#{$prefix}emphasis-color)",
875-
"$body-emphasis-color"
875+
"$$body-emphasis-color"
876876
);
877877
line = line.replaceAll(
878878
"$emphasis-color-rgb",
879-
"$body-emphasis-color"
879+
"$$body-emphasis-color"
880880
);
881881

882882
line = line.replaceAll(/var\(--#\{\$prefix\}(.*?)\)/gm, "$$$1");

src/command/render/render-contexts.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,13 @@ import { ExecutionEngine, ExecutionTarget } from "../../execute/types.ts";
6363
import {
6464
deleteProjectMetadata,
6565
directoryMetadataForInputFile,
66-
projectTypeIsWebsite,
6766
toInputRelativePaths,
6867
} from "../../project/project-shared.ts";
6968
import {
7069
kProjectLibDir,
7170
kProjectType,
7271
ProjectContext,
7372
} from "../../project/types.ts";
74-
import { isHtmlDashboardOutput, isHtmlOutput } from "../../config/format.ts";
75-
import { formatHasBootstrap } from "../../format/html/format-html-info.ts";
7673
import { warnOnce } from "../../core/log.ts";
7774
import { dirAndStem } from "../../core/path.ts";
7875
import { fileExecutionEngineAndTarget } from "../../execute/engine.ts";
@@ -298,7 +295,7 @@ export async function renderContexts(
298295

299296
// if this isn't for execute then cleanup context
300297
if (!forExecute && engine.executeTargetSkipped) {
301-
engine.executeTargetSkipped(target, formats[formatKey].format);
298+
engine.executeTargetSkipped(target, formats[formatKey].format, project);
302299
}
303300
}
304301
return contexts;

src/command/render/render-files.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ export async function renderExecute(
200200

201201
// notify engine that we skipped execute
202202
if (context.engine.executeTargetSkipped) {
203-
context.engine.executeTargetSkipped(context.target, context.format);
203+
context.engine.executeTargetSkipped(
204+
context.target,
205+
context.format,
206+
context.project,
207+
);
204208
}
205209

206210
// return results

0 commit comments

Comments
 (0)