Skip to content

Misleading "YAML parse exception" #10231

@adamjrice

Description

@adamjrice

Explain the problem.
I have a markdown doc that I want to convert to a Reveal.js presentation.

I set it up with a minimal YAML block at the top, so the first dozen or so lines of the document look like this:

% My awesome presentation
% Adam Rice

# My awesome presentation

::: notes

Some notes

:::

---
## Let's get into it

Here's the error I was getting:

YAML parse exception at line 3, column 2,
while scanning a block scalar:
did not find expected comment or line break

After some trial and error, I discovered that the real parsing problem is on the penultimate line above: the --- is not separated from the ## Let's get into it line by a blank line.

Pandoc version?
3.4, on MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions