Getting Started with Remark Frontmatter

Contents

Features

  • Markdown parsing with Remark
  • Frontmatter support using gray-matter
  • HTML output with Rehype
  • Multiple document support

Frontmatter

Frontmatter is a way to add metadata to your markdown files. It's placed at the top of your file between triple dashes (---). Here's a template you can use:

---
title: Your Document Title
date: YYYY-MM-DD
tags:
  - tag1
  - tag2
  - tag3
---


Frontmatter Fields

  • title: The title of your document
  • date: The date in YYYY-MM-DD format
  • tags: A list of tags for categorization

Usage

  1. Create markdown files in the docs directory
  2. Add frontmatter to your markdown files using the template above
  3. Access your documents through the web interface