Skip to content

Commit 7008497

Browse files
committed
Flesh out other items
1 parent b35bee6 commit 7008497

File tree

2 files changed

+61
-4
lines changed

2 files changed

+61
-4
lines changed

docs/blog/posts/2025-10-06-1.8-release/index.qmd

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
22
title: Quarto 1.8
33
description: |
4-
Quarto 1.8 ...
4+
Quarto 1.8 improves brand support, introduces brand extensions, adds HTML accessibility checks, and gives access to execution context.
55
categories:
66
- Quarto 1.8
77
- Releases
88
author: Charlotte Wickham
99
date: "2025-10-06"
1010
draft: false
11-
image: thumbnail-1.8.jpeg
12-
image-alt: ""
11+
image: thumbnail.png
12+
image-alt: "Quarto 1.8 with a lightbulb emoji"
13+
css: /docs/output-formats/autodark.css
1314
---
1415

1516
Quarto 1.8 is available! You can get the current release from the [download page](/docs/download/index.qmd).
1617

17-
Quarto 1.8 has improvements
18+
Quarto 1.8 improves support for light and dark brand colors and logos, brand extensions for sharing brands across Quarto projects, HTML accessibility checks powered by Axe-core, and access to more information about execution context from your code cells.
1819
You can read about these improvements and some other highlights below. You can find all the changes in this version in the [Release Notes](/docs/download/changelog/1.8/).
1920

2021
## Dark and light colors and logos in brand
@@ -58,8 +59,62 @@ Read more in the [Extensions > Brand](/docs/extensions/brand.qmd), and keep an e
5859

5960
## Accessibility checks for HTML
6061

62+
You can add accessibility checks using the [Axe-core engine](https://github.com/dequelabs/axe-core) to HTML documents (`format`: `html`, `revealjs` and `dashboard`) with the new `axe` option.
63+
64+
For example, you can get a summary of violations right in your document preview:
65+
66+
::: {.light-content}
67+
![A rendered webpage with an accessibility violation warning](/docs/output-formats/images/axe-violation.png){.border fig-alt="A webpage with a box in the bottom left that warns 'Serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds'."}
68+
:::
69+
70+
::: {.dark-content}
71+
![A rendered webpage with an accessibility violation warning](/docs/output-formats/images/axe-violation.png){.border .autodark fig-alt="A webpage with a box in the bottom left that warns 'Serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds'."}
72+
:::
73+
74+
Read about your options in [HTML Accessibility Checks](/docs/output-formats/html-accessibility.qmd)
75+
76+
We know accessability is a big concern for many of our users, and more improvements will be coming in future releases.
77+
6178
## Accessing execution information
6279

80+
Quarto sets the `QUARTO_EXECUTE_INFO` environment variable, which allows you to access information about execution context from code cells.
81+
82+
Read the JSON file located at `QUARTO_EXECUTE_INFO` and access properties such as `document-path`, `format`, `metadata` and more:
83+
84+
::: {.panel-tabset}
85+
86+
## R
87+
88+
```{.r}
89+
library(jsonlite)
90+
execute_info <- read_json(Sys.getenv("QUARTO_EXECUTE_INFO"))
91+
execute_info$`document-path`
92+
```
93+
94+
## Python
95+
96+
```{.python}
97+
import json
98+
import os
99+
100+
with open(os.getenv("QUARTO_EXECUTE_INFO")) as f:
101+
execute_info = json.load(f)
102+
execute_info["document-path"]
103+
```
104+
105+
## Julia
106+
107+
```{.julia}
108+
using JSON
109+
110+
execute_info = JSON.parsefile(ENV["QUARTO_EXECUTE_INFO"])
111+
execute_info["document-path"]
112+
```
113+
114+
:::
115+
116+
117+
63118
## Other Highlights
64119

65120
- [Access metadata and variables in filters and shortcodes](): Use the new `quarto.variables.get()` and `quarto.metadata.get()` APIs.
@@ -77,3 +132,5 @@ Dependency updates:
77132
We'd like to say a huge thank you to everyone who contributed to this release by opening issues and pull requests:
78133

79134
{{< include _contribs.md >}}
135+
136+
The lightbulb emoji in the [listing and social card image](thumbnail.png) for this post comes from [OpenMoji](https://openmoji.org/){.external}– the open-source emoji and icon project. License: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/#){.external}
56.8 KB
Loading

0 commit comments

Comments
 (0)