quarto-dev / quarto-dev/quarto-cli

HTML comment above metadata breaks date alias

Open
#12,310 5 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Mar 18, 2025.

bug triaged-to
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

If I have the following as metadata, it interprets date: today as today's date and renders it into the final document, as per the docs:

---
title: "test"
format: pdf
date: today
---

## Quarto
...

If I add an HTML comment above the metadata, it no longer parses date: today into a date, and just writes "today" in the document instead:

<!-- test -->
---
title: "test"
format: pdf
date: now
---
Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment
  • very old version of Ubuntu
Quarto check output
quarto check

Quarto 1.5.57
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: 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.57
      Path: [...]/quarto-1.5.57/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: [..]
      Version: 2018

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.