quarto-dev / quarto-dev/quarto-cli
`self-contained-math:true` in `reveal.js` format still require internet access
Open
@cderv is already working on this.
Since Nov 12, 2024.
bug
math
revealjs
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When creating presentations with formulas in the reveal.js format, the formulas do not render without Internet access, even if you specify self-contained-math: true.
The presentation file always requests the address https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full and without Internet access the formulas are not rendered.
Steps to reproduce
- Create new default project
- Modify _quarto.yml
project:
title: "Test"
format:
revealjs:
embed-resources: true
self-contained-math: true
- Create index.qmd
---
title: "Test"
---
## Math
$$x^2$$
- Render project
quarto render - Open
index.html - See request to Internet in developer console (F12)
- Or disconnect from Internet and see not rendered math on slide
Expected behavior
Math rendered offline
Actual behavior
Math do not render offline
Your environment
OS: Arch Linux
IDE: VsCode
Quarto check output
Quarto 1.5.29
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.29
Path: /opt/quarto/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: undefined
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.8
Path: /usr/bin/python3
Jupyter: 5.7.2
Kernels: haskell, python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /usr/lib64/R
LibPaths:
- /home/andrei/R/x86_64-pc-linux-gnu-library/4.3
- /usr/lib/R/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.