Skip to content

Commit 0efc1ce

Browse files
author
Al Manning
committed
Merge branch 'main' into feature/conf-proj
2 parents 11d570e + 20e6279 commit 0efc1ce

File tree

272 files changed

+8205
-4735
lines changed

Some content is hidden

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

272 files changed

+8205
-4735
lines changed

.luarc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
"Lua.runtime.version": "Lua 5.3",
2020
"Lua.workspace.checkThirdParty": false,
2121
"Lua.workspace.library": ["src/resources/lua-types"],
22+
"Lua.workspace.ignoreDir": ["tests/renv"],
2223
"Lua.runtime.plugin": "src/resources/lua-plugin/plugin.lua"
2324
}

configuration

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Binary dependencies
1111
export DENO=v1.28.2
1212
export DENO_DOM=v0.1.35-alpha-artifacts
13-
export PANDOC=2.19.2
13+
export PANDOC=3.1
1414
export DARTSASS=1.55.0
1515
export ESBUILD=0.15.6
1616

deno.jsonc

Lines changed: 666 additions & 0 deletions
Large diffs are not rendered by default.

dev-docs/update-deno_jsonc.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## tl;dr
2+
3+
deno.jsonc currently doesn't support globs, so we have a script to expand the globs ourselves.
4+
5+
## Steps
6+
7+
```
8+
$ cd quarto-cli
9+
$ deno run --allow-all package/src/common/create-deno-config.ts > deno.jsonc
10+
```

news/changelog-1.3.md

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Confluence Publishing
2+
3+
- Add support for publishing both documents and projects to Atlassian Confluence spaces and as children to Confluence pages.
4+
15
## Jupyter Notebooks
26

37
- Add support for embedding cell outputs in quarto documents using `{{< embed >}}`. You can address cells by Id, Tag, or label, such as `{{< embed mynotebook.ipynb#fig-output >}}` which would embed the output of a cell with the label `fig-output`). You can also provide a list of ids like `{{< embed mynotebook.ipynb#fig-output,tbl-out >}}`.
@@ -6,6 +10,12 @@
610
- Fix output of code cells that contain triple backticks (or more) ([#3179](https://github.com/quarto-dev/quarto-cli/issues/3179)).
711
- Don't install SIGCHLD signal handler since it interferes with IJulia in Julia 1.8.4 and greater ([#2539](https://github.com/quarto-dev/quarto-cli/issues/2539)).
812
- Resolve full path to QUARTO_PYTHON binary
13+
- Improve handling of YAML and titles in notebooks (auto-merge heading based title with YAML front matter)
14+
- Discard matplotlib, seaborn, and plotnine intermediate objects from output
15+
16+
## Knitr engine
17+
18+
- Help rmarkdown find pandoc binary bundled with Quarto if none is found ([#3688](https://github.com/quarto-dev/quarto-cli/issues/3688)).
919

1020
## Code Annotation
1121

@@ -25,10 +35,17 @@
2535
- Forward bootstrap table classes from caption to table element ([#4036](https://github.com/quarto-dev/quarto-cli/issues/4036)).
2636
- Render code listings with names and captions correctly ([#2195](https://github.com/quarto-dev/quarto-cli/issues/2195)).
2737
- Fix issue with interactivity of elements in mobile size dispay when `toc-left` is being used. ([#4244](https://github.com/quarto-dev/quarto-cli/issues/4244)).
38+
- Allow control of the 'cite as' appendix in HTML documents using `appendix-cite-as` (pass `false`, `display`, or `bibtex`). ([#2625](https://github.com/quarto-dev/quarto-cli/issues/2625))
39+
- Properly anchor custom appendix sections ([#3112](https://github.com/quarto-dev/quarto-cli/issues/3112)).
40+
- Don't display custom appendix sections in the TOC ([#3113](https://github.com/quarto-dev/quarto-cli/issues/3113)).
41+
- Use custom `styles.html` template partial to better support checkbox alignment ([#4556](https://github.com/quarto-dev/quarto-cli/issues/4556)).
42+
- Improve ergonomics of text-highting in HTML output, not emitting difficult overwrite styles and better supporting theme -> CSS conversion. ([#4334](https://github.com/quarto-dev/quarto-cli/issues/4334)).
43+
- Improve CSS of nested tight and loose lists ([#4560](https://github.com/quarto-dev/quarto-cli/discussions/4650)).
2844

2945
## Article Layout
3046

31-
- Improve positioning of margin content defined within tabsets. (#3280)
47+
- Improve positioning of margin content defined within tabsets ([#3280](https://github.com/quarto-dev/quarto-cli/issues/3280)).
48+
- Improve support for tables with margin positioned endnotes ([#4324](https://github.com/quarto-dev/quarto-cli/issues/4324)).
3249

3350
## Revealjs Format
3451

@@ -37,6 +54,13 @@
3754
- add better margins to numbered lists in the presence of many items and `.scrollable` ([#4283](https://github.com/quarto-dev/quarto-cli/issues/4063)).
3855
- Properly support scss imports for RevealJS extensions ([#3414](https://github.com/quarto-dev/quarto-cli/issues/3414))
3956
- Authors on the title slides now correctly object customization of the `$presentation-title-slide-text-align` scss variable ([#3843](https://github.com/quarto-dev/quarto-cli/issues/3843))
57+
- Properly support `show-notes: separate-page` [#3996](https://github.com/quarto-dev/quarto-cli/issues/3996)
58+
- Improve footnote / aside layout for centered slides. [#4297](https://github.com/quarto-dev/quarto-cli/issues/4297)
59+
- Ensure anchors refer to the containing slide in case of crossrefs ([#3533](https://github.com/quarto-dev/quarto-cli/issues/4297)).
60+
61+
## EPUB Format
62+
63+
- Enable webtex (epub2 format) or mathml (epub/epub3 format) by default for EPUB output [#4403](https://github.com/quarto-dev/quarto-cli/issues/4403)
4064

4165
## Dates
4266

@@ -62,6 +86,7 @@
6286

6387
- Properly forward variants (e.g. `+yaml_metadata_block`) to `gfm` format.
6488
- `gfm` format now supports a local browser based preview when using `quarto preview`. If you'd like to see the raw markdown in preview, you can add `preview-mode: raw` to your document front matter or project.
89+
- `gfm` and `commonmark` output formats now use ATX style headers ([#4280](https://github.com/quarto-dev/quarto-cli/issues/4280))
6590

6691
## Mermaid diagrams
6792

@@ -72,6 +97,7 @@
7297
- Remove support for tooltips, which appear to not be working in mermaid 9.2.2.
7398
- Add support for `fig-align` in mermaid diagrams in HTML format ([#3294](https://github.com/quarto-dev/quarto-cli/issues/3294)).
7499
- Add support for `%%| file` mermaid cell option ([#3665](https://github.com/quarto-dev/quarto-cli/issues/3665)).
100+
- Fix `code-fold` support in mermaid (and dot) diagrams ([#4423](https://github.com/quarto-dev/quarto-cli/issues/4423)).
75101

76102
## Dates
77103

@@ -80,6 +106,7 @@
80106
## About Pages
81107

82108
- Add support for `image-alt` which provides alternate text for the about page image. ([#3010](https://github.com/quarto-dev/quarto-cli/issues/3010))
109+
- Add support for `image-title` on About pages ([#3077](https://github.com/quarto-dev/quarto-cli/issues/3077))
83110

84111
## Article Layout
85112

@@ -94,9 +121,13 @@
94121
- Allow listings in project to point directly to non-input files (such as `yml` files) to use for contents.
95122
- Allow `sort: false` to disable any sorting, allowing items to appear in their original / natural order. (#3296)
96123
- Warn if listings are being used outside of a website ([#4267](https://github.com/quarto-dev/quarto-cli/issues/4267))
124+
- Permit using computation outputs (plots/figures) as the preview image for an item in a listing ([#2324](https://github.com/quarto-dev/quarto-cli/issues/2324))
125+
- Use alt text from preview image that is discovered for a page in a listing ([#3706](https://github.com/quarto-dev/quarto-cli/issues/3706))
126+
- Add support for `includes:` and `excludes:` in listings, which will use filter the items included in a listing. ([#2577](https://github.com/quarto-dev/quarto-cli/issues/2577)).
97127

98128
## Websites
99129

130+
- Add suport for 'Back to top' navigational button. Controlled using `back-to-top-navigation:` under `website:`, can be disabled by setting `back-to-top-navigation: false` on individual pages.
100131
- Fix issue assigning specific sidebar to a specific page using `sidebar:` (#3389)
101132
- Change behavior of `publish gh-pages` to always render into a clean directory.
102133
Previous behavior was to add to existing contents of `gh-pages` branch. ([#3199](https://github.com/quarto-dev/quarto-cli/discussions/3199), @ijlyttle)
@@ -106,14 +137,22 @@
106137
- Don't treat links with no `href` as external when `link-external-icon` is enabled ([#3645](https://github.com/quarto-dev/quarto-cli/issues/3645))
107138
- Escape HTML from code cells that appears inline in search results ([#4404](https://github.com/quarto-dev/quarto-cli/issues/4404))
108139
- Use input last modified timestamp when updating sitemap ([#3251](https://github.com/quarto-dev/quarto-cli/issues/3251))
140+
- Add support for overriding the url used to report an issue with a website using `issue-url` (which can be provided even if there is no repo provided for the website).
141+
- Properly localize search button title and various toggle aria-labels ([#4559](https://github.com/quarto-dev/quarto-cli/issues/4559))
142+
- Support `navbar: true` to turn on a top navbar even if there are no contents
143+
- Improve title recognition for pages that don't include a title in metadata ([#4528](https://github.com/quarto-dev/quarto-cli/issues/4528))
144+
- Ensure that footnote are properly indexed for website and book searches ([#4601](https://github.com/quarto-dev/quarto-cli/issues/4601)).
145+
- Permit sidebar items to include icons ([#3830](https://github.com/quarto-dev/quarto-cli/issues/3830)).
109146

110147
## Books
111148

112149
- Remove chapter number of HTML head title when `number-sections` is `false` (#3304).
113150
- Non-HTML book output formats will now be placed in subdirectories (`book-<format>`) within the project output directory (`_books`)
114-
- Don't discard the first chapter header when a chapter title is declared using YAML. ([#3653](https://github.com/quarto-dev/quarto-cli/issues/3653))
151+
- Don't discard the first chapter header when a chapter title is declared using YAML.
115152
- Support for rendering to Asciidoc
116153
- Support for rendering to LaTeX
154+
- Properly support localized appendex name in book website navigation ([#4578](https://github.com/quarto-dev/quarto-cli/issues/4578))
155+
- Don't emit duplicate bibliography heading when LaTeX/PDF books are rendering using `natbib` or `biblatex` ([#2770](https://github.com/quarto-dev/quarto-cli/issues/2770))
117156

118157
## Preview
119158

@@ -126,6 +165,7 @@
126165
## HTML Output
127166

128167
- HTML output will not decorate links within source code (for example, from `code-link: true`) with external icons. (#3755)
168+
- Use `toc-expand` to control to what level the TOC will expand by default in HTML documents.
129169

130170
## Miscellaneous
131171

@@ -148,7 +188,16 @@
148188
- Resolve link tags correctly in html dependencies ([#4304](https://github.com/quarto-dev/quarto-cli/discussions/4304)) (Thank you, @jdlom!).
149189
- use correct language code for Korean ([#4187](https://github.com/quarto-dev/quarto-cli/discussions/4187)).
150190
- resolve YAML options correctly for comments with open+close syntax ([#3901](https://github.com/quarto-dev/quarto-cli/issues/3901)).
151-
- Work around rare deno tempfile creation bug ([#4352](https://github.com/quarto-dev/quarto-cli/pull/4352)).
191+
- Work around rare deno tempfile creation bug ([#4352](https://github.com/quarto-dev/quarto-cli/issues/4352)).
192+
- Only open "safe ports" for Chromium ([#4514](https://github.com/quarto-dev/quarto-cli/issues/4514)).
193+
- Detect potential bad argument ordering in `quarto render` ([#3581](https://github.com/quarto-dev/quarto-cli/issues/3581)).
194+
- Detect potential git merge conflict in `\_freeze` files ([#4529](https://github.com/quarto-dev/quarto-cli/issues/4529)).
195+
- Trim whitespace from the end of yaml strings in jupyter engine to work around poyo parsing issue ([#4573](https://github.com/quarto-dev/quarto-cli/issues/4573)).
196+
- Use "iso" date form instead of "short" to format citations properly ([#4586](https://github.com/quarto-dev/quarto-cli/issues/4586)).
197+
- Fix typo `thumnail-image` -> `thumbnail-image` in listing template ([#4602](//github.com/quarto-dev/quarto-cli/pull/4602)) (Thank you, @mattspence!).
198+
- Add support for targeting the `#refs` divs with citations when using `natbib` or `biblatex` to generate a bibliography.
199+
- Warn users about Chromium installation issues in WSL ([#4596](https://github.com/quarto-dev/quarto-cli/issues/4586)).
200+
- Add `title` attribute for callouts (can be used rather than heading for defining the title)
152201

153202
## Pandoc filter changes
154203

@@ -160,6 +209,14 @@
160209
- fix rendering of individual project files to stdout ([#4052](https://github.com/quarto-dev/quarto-cli/issues/4052)).
161210
- fix previewing docusaurus project on Windows ([#4312](https://github.com/quarto-dev/quarto-cli/issues/4312)).
162211

212+
## Publishing
213+
214+
- Fix error publishing when an `output-dir` is specified ([#4158](https://github.com/quarto-dev/quarto-cli/issues/4158)).
215+
- Emit error when git <2.17.0 is used ([#4575](https://github.com/quarto-dev/quarto-cli/issues/4575)).
216+
163217
## Other
164218

165219
- fix error when running the command `quarto render -h` to receive help ([#3202](https://github.com/quarto-dev/quarto-cli/issues/3202)).
220+
- Fix error when rendering a document with an extension which provides a directory as `format-resources` ([#4377](https://github.com/quarto-dev/quarto-cli/issues/4377)).
221+
- Fix incorrect copying of resource files during rendering ([#4544](https://github.com/quarto-dev/quarto-cli/issues/4544))
222+
- Extension authors may now force files to be included in their template by writing the file / file path in the `.quartoignore` file prefixed with a `!`. For example `!README.md` ([#4061](https://github.com/quarto-dev/quarto-cli/issues/4061)).

package/src/cmd/pkg-cmd.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
*/
77
import { Command } from "cliffy/command/mod.ts";
88
import { join } from "path/mod.ts";
9-
import { info } from "log/mod.ts";
109

11-
import { printConfiguration } from "../common/config.ts"
10+
import { printConfiguration } from "../common/config.ts";
1211

1312
import {
1413
Configuration,

package/src/common/dependencies/dependencies.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ export async function configureDependency(
6969

7070
// If we're missing some arm64, try the intel versions and rely on rosetta.
7171
if (config.arch === "aarch64") {
72-
// rosetta 2 workarounds
73-
if (config.os === "darwin" && !archDep[config.os]) {
72+
if (!archDep || !archDep[config.os]) {
7473
warning("Missing configuration for architecture " + config.arch);
7574
archDep = dependency.architectureDependencies["x86_64"];
7675
}

package/src/common/prepare-dist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ function inlineFilters(config: Configuration) {
222222
{ name: "quarto-init" },
223223
{ name: "crossref" },
224224
{ name: "customwriter" },
225+
{ name: "qmd-reader", dir: "." },
225226
];
226227

227228
filtersToInline.forEach((filter) => {

package/src/common/trace-viewer/main.js

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ const convertCell = (cell) => {
5757
t: "TableCell",
5858
attr: convertAttr(cell[0]),
5959
alignment: cell[1].t,
60-
content: convert(cell[2]),
60+
row_span: cell[2],
6161
col_span: cell[3],
62-
row_span: cell[4],
62+
content: convert(cell[4]),
6363
};
6464
};
6565

@@ -79,11 +79,21 @@ const convertTableHead = (head) => {
7979
};
8080
};
8181

82-
const convertTableFoot = (head) => {
82+
const convertTableBody = (body) => {
83+
return {
84+
t: "TableBody",
85+
row_head_columns: body[1],
86+
attr: convertAttr(body[0]),
87+
intermediate_head: body[2].map(convertRow),
88+
body: body[3].map(convertRow),
89+
};
90+
};
91+
92+
const convertTableFoot = (foot) => {
8393
return {
8494
t: "TableFoot",
85-
attr: convertAttr(head[0]),
86-
rows: head[1].map(convertRow),
95+
attr: convertAttr(foot[0]),
96+
rows: foot[1].map(convertRow),
8797
};
8898
};
8999

@@ -135,7 +145,7 @@ const convert = (data) => {
135145
caption: convertCaption(data.c[1]),
136146
colspecs: data.c[2].map(convertColSpec),
137147
head: convertTableHead(data.c[3]),
138-
body: data.c[4].map(convert),
148+
body: data.c[4].map(convertTableBody),
139149
foot: convertTableFoot(data.c[5]),
140150
};
141151
}
@@ -209,7 +219,13 @@ const convert = (data) => {
209219
if (data.t === "SoftBreak") {
210220
return "";
211221
}
222+
if (data.t === "LineBreak") {
223+
return "\n";
224+
}
212225

226+
if (data.t === "MetaString") {
227+
return data.c;
228+
}
213229
if (data.t === "MetaList") {
214230
return postProcessStrings(data.c.map(convert));
215231
}
@@ -223,6 +239,14 @@ const convert = (data) => {
223239
text: data.c[1],
224240
};
225241
}
242+
if (data.t === "Figure") {
243+
return {
244+
t: data.t,
245+
attr: convertAttr(data.c[0]),
246+
content: convert(data.c[2]),
247+
caption: convertCaption(data.c[1]),
248+
};
249+
}
226250
throw new Error(`Can't handle type ${data.t}`);
227251
} else if (typeof data === "string") {
228252
return data;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ async function updateUnpkgDependency(
756756
}
757757
}
758758

759+
/*
759760
async function updateJsDelivrDependency(
760761
versionEnvVar: string,
761762
pkg: string,
@@ -775,6 +776,7 @@ async function updateJsDelivrDependency(
775776
throw new Error(`${versionEnvVar} is not defined`);
776777
}
777778
}
779+
*/
778780

779781
async function updateGithubSourceCodeDependency(
780782
name: string,

0 commit comments

Comments
 (0)