Skip to content

Conversation

@cwickham
Copy link
Collaborator

@cwickham cwickham commented Apr 1, 2025

Closes quarto-dev/quarto-cli#12073

Adds an "Other Spans" section: Preview

@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2025

🚀 Deployed on https://deploy-preview-1601.quarto.org

@github-actions github-actions bot temporarily deployed to pull request April 1, 2025 19:47 Inactive
@cwickham cwickham requested a review from cderv April 1, 2025 20:06
@cwickham
Copy link
Collaborator Author

cwickham commented Apr 1, 2025

@cderv I checked these on the "big" formats: html, pdf, typst, docx, revealjs, and pptx.

example.qmd
---
title: "Special Spans"
format: 
  html: default
  pdf: default
  docx: default
  typst: 
    output-file: special-spans-typst.pdf
  revealjs: 
    output-file: special-spans-reveal.html
  pptx: default
---

Quarto

[This text is smallcaps]{.smallcaps}

[This text is underlined]{.underline}

[This text is highlighted]{.mark}

They all work with the exception of:

  • .mark with format: typst. I've opened a pandoc issue.
  • .mark with format: pptx. 🤷🏻‍♀️

Is it worth calling out the exceptions?

@cwickham cwickham marked this pull request as ready for review April 1, 2025 20:06
@cderv
Copy link
Collaborator

cderv commented Apr 2, 2025

The .mark feature is from Pandoc itself: https://pandoc.org/MANUAL.html#highlighting

They do not help much by saying 😅

This will work in all output formats that support highlighting.

So Typst should support it in next version : jgm/pandoc@82668ff

And it is possible that PPTX does not support it. So we could mention it.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

🚀 Deployed on https://deploy-preview-1601.quarto.org

@github-actions github-actions bot temporarily deployed to pull request April 2, 2025 17:01 Inactive
@cwickham cwickham merged commit 4deb131 into main Apr 2, 2025
4 checks passed
@cwickham cwickham deleted the issue/12073 branch April 2, 2025 21:32
github-actions bot pushed a commit that referenced this pull request Apr 2, 2025
* Add special span classes

* Add callout for format exceptions

(cherry picked from commit 4deb131)
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

Successfully created backport PR for prerelease:

cwickham added a commit that referenced this pull request Apr 2, 2025
* Add special span classes

* Add callout for format exceptions

(cherry picked from commit 4deb131)

Co-authored-by: Charlotte Wickham <charlotte.wickham@posit.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Span class enabled Pandoc's feature for Markdown syntax (underline, smallcaps, highlight)

3 participants