whatisgithub

What is lengyi-markdown-editor?

woyin2024/lengyi-markdown-editor — explained in plain English

Analysis updated 2026-05-18

358HTMLAudience · generalComplexity · 1/5LicenseSetup · easy

In one sentence

A free, single-file Markdown editor that runs entirely in your browser with live preview, local auto-save, math and diagram rendering, and export to Markdown, HTML, Word, PDF, or image.

Mindmap

mindmap
  root((lengyi-markdown-editor))
    What it does
      Single HTML file editor
      Live Markdown preview
      Local auto-save
    Tech stack
      HTML
      JavaScript
      marked.js
      KaTeX
    Use cases
      Distraction-free writing
      Export to PDF or Word
      Edit AGENTS.md files
    Audience
      Writers
      Vibe coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Open the single HTML file and write Markdown offline with a live preview, no account needed.

USE CASE 2

Export a finished document as a Word file, PDF, or a shareable long image for social media.

USE CASE 3

Write and edit AGENTS.md or Skill.md files for AI coding agents in a distraction-free editor.

USE CASE 4

Add math formulas and Mermaid diagrams directly into your Markdown notes.

What is it built with?

HTMLJavaScriptmarked.jsKaTeXMermaid

How does it compare?

woyin2024/lengyi-markdown-editorfastlane/docsdanmcinerney/architect-loop
Stars358340335
LanguageHTMLHTMLHTML
Last pushed2026-07-01
MaintenanceActive
Setup difficultyeasyeasymoderate
Complexity1/51/53/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No install needed, just open the HTML file in a browser, the optional webpage-to-Markdown proxy needs Python 3.

MIT license: free to use, modify, and distribute, though the README asks that commercial use get separate authorization from the author.

So what is it?

This project is a Markdown editor that lives entirely in a single HTML file. There is nothing to install and no account to create. You just download the file, double-click it, and start writing in your browser, with everything staying on your own computer. The editor shows your raw Markdown on one side and a live rendered preview on the other, and you can switch between edit-only, preview-only, or split views, dragging the divider wherever you like. It includes the usual formatting tools you would expect: headings, bold and italic text, lists, blockquotes, code blocks, tables through a visual picker, and find and replace. It also supports math formulas through KaTeX and diagrams through Mermaid, so mind maps and flowcharts can be written directly in Markdown and rendered in the preview. Content is automatically saved to the browser's local storage every half second, along with your filename, layout, and preferred theme and language, so a page refresh will not lose your work. The interface is available in ten languages, including English, Simplified and Traditional Chinese, Japanese, Korean, and several European languages. You can export your document as plain Markdown, a standalone HTML file, a Word document, a PDF through the browser's print function, or a long image sized for social media sharing. Under the hood it is built with plain HTML, CSS, and JavaScript, with no framework, relying on the marked.js library to render Markdown. An optional local Python proxy script is included for converting a webpage into Markdown, which needs to be run separately if you want that feature. The author built the tool for their own writing needs and mentions it works well alongside AI coding agents for editing files like AGENTS.md or Skill.md. The project is released under the MIT license, though the README adds that commercial use should have separate authorization from the author.

Copy-paste prompts

Prompt 1
Help me open lengyi-markdown-editor's single HTML file locally and start writing a Markdown document.
Prompt 2
Explain how to use the local proxy script to convert a webpage into Markdown in this editor.
Prompt 3
Show me how to export my document from this editor as a PDF and as a Word file.
Prompt 4
Walk me through switching the editor's language and theme, and confirm my settings will persist after a refresh.

Frequently asked questions

What is lengyi-markdown-editor?

A free, single-file Markdown editor that runs entirely in your browser with live preview, local auto-save, math and diagram rendering, and export to Markdown, HTML, Word, PDF, or image.

What language is lengyi-markdown-editor written in?

Mainly HTML. The stack also includes HTML, JavaScript, marked.js.

What license does lengyi-markdown-editor use?

MIT license: free to use, modify, and distribute, though the README asks that commercial use get separate authorization from the author.

How hard is lengyi-markdown-editor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is lengyi-markdown-editor for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.