Skip to content

YAML Frontmatter rendering #128

Closed
Closed

Description

@ryanthara

The YAML Frontmatter of a header in a markdown document is only rendered in a proper way, when a blank line is inserted before the closing three dashes.

Example:

This

---
title: My Article Title
date: 2024-01-15
author: John Doe
tags: [markdown, tutorial, web]
---

is differently rendered to this

---
title: My Article Title
date: 2024-01-15
author: John Doe
tags: [markdown, tutorial, web]

---

It depends on the blank line.

Activity

  1. rrpolanco commented on Jul 23, 2026

    @rrpolanco

    In zennotes 2.15 the frontmatter in the editor doesn't render correctly and in the preview, it does not render at all.

    Image
  2. junereycasuga commented on Jul 28, 2026

    @junereycasuga
    Contributor

    The main issue should be resolved by now through #426.

    However, I'm not sure if an un-rendered frontmatter in the Preview is an actual intent or an issue.

    cc @adibhanna

  3. adibhanna commented on Aug 25, 2026

    @adibhanna
    Contributor

    The blank-line dependency was fixed in 2.15.0 (#426) and the outline followed in 2.16.0 (#442). Hiding the frontmatter block in Preview is deliberate: it is metadata, not prose. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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