Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ All changes included in 1.11:
- ([#15140](https://github.com/quarto-dev/quarto-cli/pull/15140)): Add support for definition lists written as a `definition-list` div holding a nested bullet list, the definition list syntax of Quarto 2.
- ([#15180](https://github.com/quarto-dev/quarto-cli/pull/15180)): Fix older Quarto versions failing to render with `RangeError: could not deserialize value` once a Quarto built on a newer Deno has used the same cache. Also fix a project cache that already has entries failing to clear with `Path must be a string`.
- ([#15198](https://github.com/quarto-dev/quarto-cli/issues/15198)): Fix `quarto add`, `quarto use template`, `quarto use brand` and `quarto install tinytex` failing to unzip on Windows when a Group Policy blocks running `.bat` files from the temporary folder, and when a path contains an apostrophe.
- ([#15205](https://github.com/quarto-dev/quarto-cli/pull/15205)): Fix `contents` shortcode throwing errors in presence of rich content. (author: @benkeks)
2 changes: 1 addition & 1 deletion src/resources/filters/quarto-pre/contentsshortcode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function contents_shortcode_filter()
return nil
end
local raw = quarto.utils.match("[1]/RawInline")(el)
if not raw then
if not raw or raw.format ~= "quarto-internal" then
return nil
end
local result, data = pcall(function()
Expand Down
23 changes: 23 additions & 0 deletions tests/docs/smoke-all/contents-shortcode/raw-inline.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
format: html
_quarto:
tests:
html:
ensureHtmlElements:
- ["p > span#raw-paragraph", "li > span#raw-list-item", "#destination > #source"]
ensureHtmlElementContents:
selectors: ["#destination"]
matches: ["Reused content"]
---

`<span id="raw-paragraph">Raw paragraph</span>`{=html}

- `<span id="raw-list-item">Raw list item</span>`{=html}

::: {#source}
Reused content
:::

::: {#destination}
{{< contents source >}}
:::
Loading