md-to-lexical

Convert Markdown documents into Lexical JSON format for rich text editors.

32|5|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Innei/haklex --skill md-to-lexical
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-lexical
Source: https://github.com/Innei/haklex/tree/main/.claude/skills/md-to-lexical
Command: npx skills add https://github.com/Innei/haklex --skill md-to-lexical

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill converts Shiroi-flavored Markdown into Haklex's Lexical JSON format, enabling easy integration with rich text editors.

Core Features & Use Cases

  • Markdown Conversion: Translates headings, lists, code blocks, images, links, and more into Lexical JSON nodes.
  • Structured Data Export: Facilitates exporting Markdown content into a structured, editable JSON format for web applications and editors.
  • Use Case: A user has Markdown documentation and wants to render it as an editable rich text document within a web app; this Skill automates the conversion process with a simple command.

Quick Start

Run the conversion script with an input Markdown file to produce the Lexical JSON output.

Frequently Asked Questions about md-to-lexical

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to Lexical JSON for a rich text editor?

You can convert Markdown to Lexical JSON by running a TypeScript script that translates Markdown syntax into structured JSON nodes for rich text editors. This streamlines document migration into web applications.

What Markdown elements are supported when converting to structured JSON?

The Markdown to structured JSON conversion supports headers, lists, images, code blocks, and links. These elements are translated into corresponding Lexical JSON nodes for rich text editing.

Do I need Node.js to convert Markdown documents into editor JSON format?

Yes, you need Node.js installed to run the TypeScript script for converting Markdown documents into editor JSON format. The script processes the input file to output structured data.

When do I need to export Markdown into structured JSON data?

You need to export Markdown into structured JSON data when integrating existing documentation into a web application rich text editor. This process automates content migration into an editable format.

What is the best way to migrate Markdown content to a rich text editor?

The best way to migrate Markdown content to a rich text editor is using an automated conversion script that parses syntax and outputs editor-compatible JSON, ensuring seamless document processing and editing workflows.

Are there limitations when converting Markdown syntax to editor JSON?

The conversion script targets Shiroi-flavored Markdown for Haklex's Lexical JSON format. Unsupported custom Markdown syntax outside this flavor may not translate correctly into the structured editor JSON nodes.