Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.
This repository was archived by the owner on May 3, 2024. It is now read-only.

Add a YAML FrontMatter metadata parser #41

@alfredbaudisch

Description

@alfredbaudisch

Proposed Solution

  1. Parse YAML to Elixir, getting an Elixir map from the YAML FrontMatter string.
  2. Then, feed the resulting elixir map to the current ElixirMap parser, this way, there's no need to worry about the low level details

As an example, the JoplinNote parser also uses the ElixirMap parser. This way you don't need to worry about the inner details of what the YAML data contains, the validation is all done by ElixirMap and FileParser anyway.

Example markdown file

---
title: Elixir!
---

Content...

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions