Skip to content

Shortcode in Latex inline math doesn't get rendered #14255

@MBe-iUS

Description

@MBe-iUS

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

Hi,

when I use a shortcode in inline math I get an hexcode in the produced PDF.

Funnily, the hexcode can partially be converted to the shortcode...

The question is: Should shortcode in inline math work?

Thanks (as always)!

Steps to reproduce

---
title: Untitled
format:
  pdf: 
    keep-tex: true
author: me
date: last-modified
five: 5
---

$5 + {{< meta five >}}$

Actual behavior

The above example renders to Latex:

\[ 5 + b58fc729-690b-4000-b19f-365a4093b2ff;7B7B3C206D6574612066697665203E7D7D; \]

The 7B7B3C206D6574612066697665203E7D7D translates just to {{< meta five >}} in a hexcode editor.

Expected behavior

It should render to \[ 5 + 5 \].

Your environment

  • OS: Mac OS Tahoe 26.3.1

Quarto check output

Quarto 1.9.35
[✓] Checking environment information...
      Quarto cache location: /Users/becker/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.8.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.4.5: OK
      Typst version 0.14.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.9.35
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2026.03.02
      VeraPDF: 1.28.2
      Chromium: (not installed)
      Chrome Headless Shell: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/becker/Library/TinyTeX/bin/universal-darwin
      Version: 2026

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

[✓] Checking basic markdown render....OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmathany issue related to math support in specific formatsshortcodesissues related to shortcodes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions