quarto-dev / quarto-dev/quarto-cli

Error parsing `---` without whitespace

Open
#3,004 4 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Oct 24, 2022.

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

Description

See complete thread for details, but basically markdown like

---
## Test 123

creates problems for us in yaml.ts export function readYamlFromMarkdown()

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/3001

Originally posted by samarzayan October 24, 2022
I am getting the following error exactly at the last :.
YAMLError: end of the stream or a document separator is expected at line 7, column 3:
when I use every callout block, for example:
:::{.callout-note}
Sample note.
:::
I checked online for about 2 hours but had no luck. Someone, please help.
The syntax is correct as per the Quarto docs.

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.