Skip to content

Detect json & toml frontmatter node types #2006

@thompson-tomo

Description

@thompson-tomo

Currently when we are parsing markdown such as those defined on (https://www.markdownlang.com/advanced/frontmatter.html)

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

# Article Content

or

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

# Article Content

The parser is identifying the front matter block as a paragraph but it should be identified as Toml and json respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions