Markdown

Markdown fields with a CodeMirror editor, styled directives and MCP access for AI agents

Community 8 57/wk MIT v1.8.1

Installation

pnpm add @valkyrianlabs/payload-markdown

About

Payload Markdown adds Markdown-first authoring to Payload. Editors work in a CodeMirror editor with syntax highlighting, directive autocomplete and inline warnings for broken syntax. Content stays as portable Markdown instead of a rich text tree.

Directives render callouts, details, tables of contents, steps, cards, buttons and tabs in the admin preview and on the site. Themes control the look, and local SVG icon packs supply icons. Rendering runs on the server, so pages need no extra client code.

AI agents can read, edit, validate and publish content over MCP. Changes are saved as drafts, and every call runs under the permissions of the API key's user.

Package info

Package name
@valkyrianlabs/payload-markdown
Latest version
1.8.1
Unpacked size
1.7 MB
License
MIT
Weekly downloads
57
Last publish
Oct 14, 2026

More from valkyrianlabs

View profile

Syncs Git-hosted Markdown docs into Payload and renders them in a Next.js site

Similar plugins

More in Editor

Editor-authored URL routing that maps collections to path patterns and links

Adds AI text, translation, image and voice generation to Payload fields and the editor

Adds AI text, image and voice generation and translation to Payload editors

Translates Payload documents into other locales with LibreTranslate in the background

Adds Mermaid diagram blocks to rich text with server-rendered SVG output

Code-defined transactional emails with admin-editable copy, test sends and a send log