quarto-dev / quarto-dev/quarto-cli

Quarto front matter expects ending with --- while pandoc allows ...

Open
#6,698 1 comment 1 reaction 1 assignee View on GitHub

@cscheid is already working on this.

Since Sep 4, 2023.

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

Description

I'm asking if Quarto is supposed to allow ending the frontmatter with ....
(Because it makes it possible for me to modify the frontmatter with standard yaml libraries.)

Your answer above is "Yes", because Pandoc allows this. Great :-)

Unfortunately Quarto throws an error. Should I file a bug report?

Expected front matter to end with '---'

Error: Expected front matter to end with '---'
    at validateDocumentFromSource (file:///opt/quarto/bin/quarto.js:84346:19)
    at async renderFiles (file:///opt/quarto/bin/quarto.js:86587:55)
    at async render (file:///opt/quarto/bin/quarto.js:90681:21)
    at async renderForPreview (file:///opt/quarto/bin/quarto.js:102415:26)
    at async render (file:///opt/quarto/bin/quarto.js:102310:20)
    at async Object.promise (file:///opt/quarto/bin/quarto.js:102466:33)

Originally posted by @th0ger in https://github.com/quarto-dev/quarto-cli/discussions/6687#discussioncomment-6896517

cc @cscheid

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.