Skip to content

Commit 128232a

Browse files
committed
merge
2 parents 1490a98 + 521960c commit 128232a

File tree

89 files changed

+2168
-1152
lines changed

Some content is hidden

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

89 files changed

+2168
-1152
lines changed

configuration

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
export DENO=v1.46.3
1212
# TODO figure out where 0.1.41 apple silicon libs are available
1313
export DENO_DOM=v0.1.41-alpha-artifacts
14-
export PANDOC=3.4
14+
export PANDOC=3.6.3
1515
export DARTSASS=1.85.1
1616
export ESBUILD=0.19.12
17-
export TYPST=0.11.0
17+
export TYPST=0.13.0
1818

1919

2020
# NB: we can't put comments in the same line as export statements because it

dev-docs/feature-format-matrix/qmd-files/css-properties/font-size/document.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ _quarto:
1919
typst:
2020
ensureTypstFileRegexMatches:
2121
-
22-
- 'align\(center\)\[#set text\(size: 6pt\); #table\('
22+
- '#\[\s*#set text\(size: 6pt\); #table\('
2323
- []
2424
---
2525

dev-docs/upgrade-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Change version numbers in `./configuration` to correspond to new versions.
22

3-
Contact JJ so he uploads the binaries to the S3 bucket.
3+
Contact Carlos so he uploads the binaries to the S3 bucket.
44

55
## Upgrade deno
66

news/changelog-1.7.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@ All changes included in 1.7:
5959
- ([#11835](https://github.com/quarto-dev/quarto-cli/issues/11835)): Take markdown structure into account when detecting minimum heading level.
6060
- ([#11903](https://github.com/quarto-dev/quarto-cli/issues/11903)): `crossref` configuration like `fig-title` or `tbl-title` now correctly supports multi word values, e.g. `fig-title: 'Supplementary Figure'`.
6161
- ([#11878](https://github.com/quarto-dev/quarto-cli/issues/11878), [#12085](https://github.com/quarto-dev/quarto-cli/issues/12085)): Correctly fixup raw LaTeX table having an unexpected table env with options (e.g `\begin{table}[!ht]`) to be handled as crossref table.
62+
- Update to Pandoc's LaTeX template following Pandoc 3.6.3 support:
63+
- `format: beamer` now uses its own template. The main template for latex does not use `$if(beamer)$` anymore, and the new template for beamer uses the same partials as latex one.
64+
- Improved Babel support:
65+
- New `babeloptions` variable in the template to allow for more flexible Babel options.
66+
- `doc-class.tex` Quarto's partial has been updated as Babel options have been moved to `documentclass` definition in `doc-class.tex` Quarto's partial.
67+
- New partials available for `format: latex` and `format: beamer`:
68+
- Pandoc now uses partials for its latex templates, and they are available through `template-partials`. Pandoc's partials uses `.latex` extension: `passoptions.latex`, `common.latex`, `font-settings.latex`, `fonts.latex`, `hypersetup.latex`, `after-header-includes.latex`
69+
- New Quarto partials: `babel-lang.tex`, `biblio-config.tex`. Quarto's partials uses `.tex` extension.
70+
- BREAKING CHANGE for templates authors: `common.latex` does now uses `pandoc.tex` partial from Quarto, which include now part of the content that was in main `template.tex`. If you modify `pandoc.tex` as part of a custom format, it should be updated to new content.
71+
72+
## `jats` format
73+
74+
- Update to Pandoc's template following Pandoc 3.6.3 support:
75+
- `article.jats_publishing` partials now support `author.roles`
6276

6377
## `revealjs` format
6478

package/src/common/dependencies/esbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function esBuild(version: string): Dependency {
6767
};
6868

6969
return {
70-
name: "esbuild javscript bundler",
70+
name: "esbuild javascript bundler",
7171
bucket: "esbuild",
7272
version,
7373
architectureDependencies: {

package/src/common/update-pandoc.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ async function writePandocTemplates(
198198
);
199199
const latexOutdir = join(formatSrcDir, "pdf", "pandoc");
200200
const revealOutdir = join(formatSrcDir, "revealjs", "pandoc");
201+
const beamerOutdir = join(formatSrcDir, "beamer", "pandoc");
201202
const asciidocOutdir = join(formatSrcDir, "asciidoc", "pandoc");
202203
const typstOutdir = join(formatSrcDir, "typst", "pandoc");
203204

@@ -219,13 +220,31 @@ async function writePandocTemplates(
219220
],
220221
[latexOutdir]: [
221222
{ from: "default.latex", to: "latex.template" },
223+
// Template we need to tweak
224+
{ from: "common.latex", to: "latex.common" },
225+
// Template kept unchanged
226+
{ from: "after-header-includes.latex" },
227+
{ from: "hypersetup.latex" },
228+
{ from: "font-settings.latex" },
229+
{ from: "fonts.latex" },
230+
{ from: "passoptions.latex" },
231+
],
232+
[beamerOutdir]: [
233+
{ from: "default.beamer", to: "beamer.template" },
234+
// Template we need to tweak
235+
{ from: "common.latex", to: "latex.common" },
236+
// Template kept unchanged
237+
{ from: "after-header-includes.latex" },
238+
{ from: "hypersetup.latex" },
239+
{ from: "font-settings.latex" },
240+
{ from: "fonts.latex" },
241+
{ from: "passoptions.latex" },
222242
],
223243
[asciidocOutdir]: [
224244
{ from: "default.asciidoc", to: "asciidoc.template" },
225245
],
226246
[typstOutdir]: [
227247
{ from: "default.typst", to: "typst.template" },
228-
{ from: "definitions.typst" },
229248
{ from: "template.typst" }
230249
]
231250
};

src/command/render/pandoc-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function resolveSassBundles(
9696
!maybeBrandBundle.user?.find((v) => v === "brand") &&
9797
!maybeBrandBundle.dark?.user?.find((v) => v === "brand"),
9898
);
99-
let foundBrand = { light: false, dark: false };
99+
const foundBrand = { light: false, dark: false };
100100
const bundles: SassBundle[] = bundlesWithBrand.filter((bundle) =>
101101
bundle.key !== "brand"
102102
).map((bundle) => {

src/command/render/project.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ import { fileExecutionEngine } from "../../execute/engine.ts";
8181
import { projectContextForDirectory } from "../../project/project-context.ts";
8282
import { ProjectType } from "../../project/types/types.ts";
8383
import { ProjectConfig as ProjectConfig_Project } from "../../resources/types/schema-types.ts";
84-
import { Extension } from "../../extension/types.ts";
8584

8685
const noMutationValidations = (
8786
projType: ProjectType,

src/core/safe-clone-deep.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ export function safeCloneDeep<T>(obj: T): T {
2424
return obj.clone();
2525
}
2626

27+
// Handle Maps
28+
if (obj instanceof Map) {
29+
const clonedMap = new Map();
30+
for (const [key, value] of obj.entries()) {
31+
clonedMap.set(key, safeCloneDeep(value));
32+
}
33+
return clonedMap as T;
34+
}
35+
36+
// Handle Sets
37+
if (obj instanceof Set) {
38+
const clonedSet = new Set();
39+
for (const value of obj.values()) {
40+
clonedSet.add(safeCloneDeep(value));
41+
}
42+
return clonedSet as T;
43+
}
44+
2745
// Handle regular objects
2846
const result = {} as T;
2947
for (const key in obj) {

src/core/sass.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { existsSync } from "../deno_ral/fs.ts";
88
import { join } from "../deno_ral/path.ts";
99

1010
import { quartoCacheDir } from "./appdirs.ts";
11-
import { TempContext } from "./temp.ts";
1211

1312
import { SassBundleLayers, SassLayer } from "../config/types.ts";
1413
import { dartCompile } from "./dart-sass.ts";

0 commit comments

Comments
 (0)