Skip to content

Last item in frontmatter shows up in the outline as H2, unless a blank line is added #442

Description

@stevecopley

Issue

The last item in the frontmatter of a note is being parsed as an H2 for the outline view, due to the closing frontmatter marker --- being read as the alternative heading markup for an H2 heading:

This is an H2 Heading
---

Example

So, for this example...

---
title: Test
type: Test
---

... the outline shows H2: type: Test

Adding a blank line at the end of the frontmatter block fixes the mis-parsing...

---
title: Test
type: Test

---

To Solve

The outline parser should skip the whole of the frontmatter block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions