Dark mode

a markdown snippet engine

Write markdown once.

Index it at build time.

Render it anywhere.

Scroll to content

mark↓ is a tiny snippet engine for structured Markdown content with build-time indexing, runtime fetching, and clean HTML rendering. It's framework-agnostic with optional Angular & React adapters, and includes hooks to grab specific content by front-matter metadata and autogenerated group tagging based on your snippet folder structure.

Markdown
---
slug: getting-started
title: Getting Started
tags: [intro]
---
# Getting started
Some copy in **Markdown**.
Indexed snippet
{
  "slug": "getting-started",
  "title": "Getting Started",
  "tags": ["intro"],
  "path": "guide/getting-started.md",
  "group": "guide"
}
Written HTML
<div data-snippet="getting-started"></div>
Rendered HTML
<div>
  <h1>Getting started</h1>
  <p>Some copy in <strong>Markdown</strong>.</p>
</div>
npm i @mzebley/mark-down
View on GitHub View on npm