A client-side Lexical feature for Payload 3.x that lets authors paste raw Markdown into the rich-text editor. It is added to the features array of lexicalEditor rather than to the top-level plugins list. The Markdown is converted with Lexical's markdown transformers and inserted at the cursor. It requires regenerating the import map and React 19.
Payload CMS Lexical editor feature for pasting Markdown via a toolbar button, slash command, or drawer.
Installation
npm i payload-paste-as-markdown0
Stars
0
Forks
0
Open Issues
3 months ago
Last Updated
996
Weekly Downloads
v0.1.2
npm Version
20.0 KB
Unpacked Size
0
Dependencies
00 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
| Nov 28, 2026 | 0 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
| Nov 25, 2026 | 0 |
| Nov 24, 2026 | 0 |
| Nov 23, 2026 | 0 |
| Nov 22, 2026 | 0 |
| Nov 21, 2026 | 0 |
| Nov 20, 2026 | 0 |
| Nov 19, 2026 | 0 |
| Nov 18, 2026 | 0 |
| Nov 17, 2026 | 0 |
| Nov 16, 2026 | 0 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 0 |
| Nov 13, 2026 | 0 |
| Nov 12, 2026 | 0 |
| Nov 11, 2026 | 0 |
| Nov 10, 2026 | 0 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
| Oct 24, 2026 | 0 |
| Oct 23, 2026 | 0 |
| Oct 22, 2026 | 0 |
| Oct 21, 2026 | 0 |
| Oct 20, 2026 | 0 |
| Oct 19, 2026 | 0 |
| Oct 18, 2026 | 0 |
| Oct 17, 2026 | 0 |
| Oct 16, 2026 | 0 |
| Oct 15, 2026 | 0 |
| Oct 14, 2026 | 0 |
| Oct 13, 2026 | 0 |
| Oct 12, 2026 | 0 |
| Oct 11, 2026 | 0 |
| Oct 10, 2026 | 0 |
| Oct 9, 2026 | 0 |
| Oct 8, 2026 | 0 |
| Oct 7, 2026 | 0 |
| Oct 6, 2026 | 0 |
| Oct 5, 2026 | 0 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 0 |
| Oct 1, 2026 | 0 |
| Sep 30, 2026 | 0 |
| Sep 29, 2026 | 0 |
| Sep 28, 2026 | 0 |
| Sep 27, 2026 | 0 |
| Sep 26, 2026 | 0 |
| Sep 25, 2026 | 0 |
| Sep 24, 2026 | 0 |
| Sep 23, 2026 | 0 |
| Sep 22, 2026 | 0 |
| Sep 21, 2026 | 0 |
| Sep 20, 2026 | 0 |
| Sep 19, 2026 | 0 |
| Sep 18, 2026 | 0 |
| Sep 17, 2026 | 0 |
| Sep 16, 2026 | 0 |
| Sep 15, 2026 | 0 |
| Sep 14, 2026 | 0 |
| Sep 13, 2026 | 0 |
| Sep 12, 2026 | 0 |
| Sep 11, 2026 | 0 |
| Sep 10, 2026 | 0 |
| Sep 9, 2026 | 0 |
| Sep 8, 2026 | 0 |
| Sep 7, 2026 | 0 |
| Sep 6, 2026 | 0 |
835+796 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 835 |
| Dec 4, 2026 | 528 |
| Dec 3, 2026 | 431 |
| Dec 2, 2026 | 240 |
| Dec 1, 2026 | 162 |
| Nov 30, 2026 | 56 |
| Nov 29, 2026 | 11 |
| Nov 28, 2026 | 11 |
| Nov 27, 2026 | 11 |
| Nov 26, 2026 | 11 |
| Nov 25, 2026 | 6 |
| Nov 24, 2026 | 4 |
| Nov 23, 2026 | 4 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 7 |
| Nov 20, 2026 | 7 |
| Nov 19, 2026 | 7 |
| Nov 18, 2026 | 8 |
| Nov 17, 2026 | 8 |
| Nov 16, 2026 | 9 |
| Nov 15, 2026 | 9 |
| Nov 14, 2026 | 11 |
| Nov 13, 2026 | 13 |
| Nov 12, 2026 | 13 |
| Nov 11, 2026 | 17 |
| Nov 10, 2026 | 17 |
| Nov 9, 2026 | 16 |
| Nov 8, 2026 | 15 |
| Nov 7, 2026 | 14 |
| Nov 6, 2026 | 11 |
| Nov 5, 2026 | 10 |
| Nov 4, 2026 | 5 |
| Nov 3, 2026 | 6 |
| Nov 2, 2026 | 9 |
| Nov 1, 2026 | 10 |
| Oct 31, 2026 | 13 |
| Oct 30, 2026 | 13 |
| Oct 29, 2026 | 12 |
| Oct 28, 2026 | 12 |
| Oct 27, 2026 | 12 |
| Oct 26, 2026 | 16 |
| Oct 25, 2026 | 16 |
| Oct 24, 2026 | 17 |
| Oct 23, 2026 | 17 |
| Oct 22, 2026 | 19 |
| Oct 21, 2026 | 20 |
| Oct 20, 2026 | 19 |
| Oct 19, 2026 | 14 |
| Oct 18, 2026 | 19 |
| Oct 17, 2026 | 13 |
| Oct 16, 2026 | 13 |
| Oct 15, 2026 | 15 |
| Oct 14, 2026 | 14 |
| Oct 13, 2026 | 15 |
| Oct 12, 2026 | 15 |
| Oct 11, 2026 | 10 |
| Oct 10, 2026 | 15 |
| Oct 9, 2026 | 15 |
| Oct 8, 2026 | 12 |
| Oct 7, 2026 | 13 |
| Oct 6, 2026 | 14 |
| Oct 5, 2026 | 14 |
| Oct 4, 2026 | 16 |
| Oct 3, 2026 | 14 |
| Oct 2, 2026 | 18 |
| Oct 1, 2026 | 17 |
| Sep 30, 2026 | 20 |
| Sep 29, 2026 | 26 |
| Sep 28, 2026 | 28 |
| Sep 27, 2026 | 37 |
| Sep 26, 2026 | 53 |
| Sep 25, 2026 | 58 |
| Sep 24, 2026 | 63 |
| Sep 23, 2026 | 66 |
| Sep 22, 2026 | 61 |
| Sep 21, 2026 | 58 |
| Sep 20, 2026 | 46 |
| Sep 19, 2026 | 29 |
| Sep 18, 2026 | 21 |
| Sep 17, 2026 | 18 |
| Sep 16, 2026 | 14 |
| Sep 15, 2026 | 13 |
| Sep 14, 2026 | 14 |
| Sep 13, 2026 | 15 |
| Sep 12, 2026 | 13 |
| Sep 11, 2026 | 14 |
| Sep 10, 2026 | 25 |
| Sep 9, 2026 | 25 |
| Sep 8, 2026 | 27 |
| Sep 7, 2026 | 31 |
| Sep 6, 2026 | 39 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1346243759-root)<a href="https://payloaddirectory.dev/plugins/1346243759-root"><img src="https://payloaddirectory.dev/badge/1346243759-root.svg" alt="Payload Directory"></a>README

A reusable Payload CMS 3.x Lexical editor feature that lets authors paste raw Markdown into the rich-text editor via a toolbar button, slash command, or keyboard-free drawer.
If you're browsing this repository on GitHub, please tag it with the
payload-plugintopic so it surfaces in Payload community plugin listings.
This is a Lexical editor feature rather than a top-level buildConfig plugin, so it is configured inside lexicalEditor({ features: [...] }).
/markdown, /md, /paste)npm install payload-paste-as-markdown
# or
pnpm add payload-paste-as-markdown
# or
yarn add payload-paste-as-markdown
This package expects payload, @payloadcms/richtext-lexical, @payloadcms/ui, react, and react-dom to already be installed in your project.
Import the server feature and add it to the features array of any lexicalEditor:
import { MarkdownPasteFeature } from 'payload-paste-as-markdown'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import type { CollectionConfig } from 'payload'
export const Posts: CollectionConfig = {
slug: 'posts',
fields: [
{
name: 'content',
type: 'richText',
editor: lexicalEditor({
features: ({ defaultFeatures }) => [
...defaultFeatures,
MarkdownPasteFeature(),
],
}),
},
],
}
After installing, regenerate Payload's import map:
npx payload generate:importmap
payload ^3.0.0@payloadcms/richtext-lexical ^3.0.0@payloadcms/ui ^3.0.0react ^19.0.0react-dom ^19.0.0MIT Sponsored by: Onion Creative
payload plugin lexical
Lexical-based rich text editor field for Payload 1.x with tables, embeds, and a customizable feature set
35152/wk213v1
ox payload editorial
Editorial Lexical blocks written as markdown directives, with lossless round trip and token-styled rendering
250v3 v4
richtext
Rich-text child block, default Lexical editor preset and JSX renderer for Atomic Payload
6433/wk37v3
payload richtext lexical react native
React Native renderer for serialized Lexical rich text content from Payload CMS
3918/wk0v3
payload code block feature
Adds a code block feature to the Payload Lexical editor using @lexical/code
397/wk11v2
payload shiki code
Server-rendered Shiki syntax-highlighted code block for Payload Lexical richtext fields
372.2k/wk3v3