Skip to content

self-contained-math:true in reveal.js format still require internet access #9404

Open
@AndreiBiziuk

Description

@AndreiBiziuk

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

  1. Create new default project
  2. Modify _quarto.yml
project:
  title: "Test"

format:
  revealjs: 
    embed-resources: true
    self-contained-math: true 
  1. Create index.qmd
---
title: "Test"
---

## Math

$$x^2$$
  1. Render project quarto render
  2. Open index.html
  3. See request to Internet in developer console (F12)
  4. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmathany issue related to math support in specific formatsrevealjsIssues with the revealjs format

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions