DemoDocsPlaygroundGitHub

An extensible rich text editor framework built on Lexical. Ship faster with production-ready defaults and TypeScript-first APIs.

Documentation

IntroductionInstallation@lyfie/luthor-headless@lyfie/luthor

Resources

DemoFeaturesPlaygroundGitHubluthor @ npmluthor-headless @ npm

Support the Project

Buy me a coffeeStar on GitHub

Built with ❤️ by Lyfie.org

HomeDocsFeaturesDemoGitHubllms.txtllms-full.txt
  1. Home
  2. Docs
  3. Luthor
  4. Presets
  5. Md Editor

Luthor Documentation

Getting Started

  • Introduction
  • Installation
  • Contributor Guide
  • AI Agents and Vibe Coding
  • Capabilities
  • @lyfie/luthor-headless
  • @lyfie/luthor

@lyfie/luthor-headless

  • Architecture
  • Extensions and API
  • Metadata Comment System
  • Features
  • Typography and Text
  • Structure and Lists
  • Media and Embeds
  • Code and Devtools
  • Interaction and Productivity
  • Customization and Theming

@lyfie/luthor

  • Architecture
  • Props Reference
  • Feature Flags
  • Presets
  • Extensive Editor
  • Compose Editor
  • Simple Editor
  • Legacy Rich Editor
  • MD Editor
  • HTML Editor
  • Slash Editor
  • Headless Editor

MD Editor

Markdown-native preset with visual editing plus JSON/Markdown source tabs.

Internally this preset is a LegacyRichEditor wrapper with sourceFormat="markdown".

Usage

tsx
import { MDEditor } from '@lyfie/luthor';
import '@lyfie/luthor/styles.css';

export function App() {
  return <MDEditor defaultEditorView="markdown" />;
}

Props

MDEditorProps inherits LegacyRichEditorProps, then fixes source behavior to markdown.

  • initialMode: 'visual' (default) | 'json' | 'markdown'
  • defaultEditorView: 'visual' (default) | 'json' | 'markdown'
  • featureFlags: undefined (default) | FeatureFlagOverrides (preset-enforced exclusions still apply)

Behavior

Provides markdown-native formatting (headings, lists, links, quote, inline code, code block, horizontal rule), uses Visual/JSON/Markdown tabs, keeps toolbar enabled, and disables metadata-heavy features by default.

Default modes

  • availableModes: ["visual", "json", "markdown"]

Good fit

  • Documentation tools
  • Markdown content pipelines
  • Apps that persist markdown or run markdown-first review workflows
Previous: Legacy Rich Editor
Next: HTML Editor