From 953ad4d9c2f8688f34d798b8f650cf50acafd723 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sat, 25 Jan 2025 22:07:57 +0200 Subject: Implement FrontMatter parsing. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index bdb8f13..1522392 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,25 @@ FlatMatter also supports functions, allowing you to build your own data DSL, and forward slash `/` character, meaning that the result of the left operation will be passed as the first argument of the next function, and so on, to produce an end result. +Additionally, FlatMatter also parses FrontMatter content, meaning that a FlatMatter file like this: + +```yaml +--- +title: "Hello, World!" +--- + +Content goes here. +``` + +Would result in this data being created: + +```json +{ + "title": "Hello, World!", + "content": "Content goes here." +} +``` + ## Install ```shell -- cgit v1.2.3