@typedown/core
v0.0.1
Published
Compile markdown into typed, validated, serializable Typedown documents.
Maintainers
Readme
@typedown/core
Core compiler for Typedown.
@typedown/core turns markdown into a typed, validated, serializable document tree. It handles frontmatter, directives, headings, excerpts, diagnostics, and plugin transforms.
Install
pnpm add @typedown/core zodExample
import { compile } from "@typedown/core";
import { z } from "zod";
const doc = compile(source, {
frontmatterSchema: z.object({
title: z.string(),
}),
});Repo: https://github.com/ddoemonn/typedown
