Skip to content

[Bug] Comments In YAML Frontmatter Show Up As Headings #261

@NiclasvanEyk

Description

@NiclasvanEyk

To demonstrate, I'll use the following markdown file:

---
title: "Some frontmatter"
# A comment
---

# The title

A paragraph.

## A Subheading

Another paragraph.

When opening this file in Helix and pulling up the document symbols, the # A comment line of the frontmatter is treated as a markdown heading, even though it should simply be ignored:

Image

It also shows up in auto-completions:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions