pandao/editor.md ? reverse-engineered prompt

Reverse engineered prompt

Build me an embeddable online Markdown editor that I can drop into a web page.

I want a clean split view editor with live preview, so I can type Markdown on one side and see the rendered result on the other. It should support normal Markdown plus GitHub style features like tables, task lists, emoji, table of contents, code blocks, and syntax highlighting. It’d be great if it can also handle math formulas, flowcharts, and sequence diagrams.

Please make it work as a reusable component, with a simple way to initialize it on a page and point it to the required helper files. I’d also like a read only preview mode, basic search and replace, code folding, line numbers, themes, and support for different languages. If there are security concerns around HTML inside Markdown, handle that safely.

Use the current docs or examples online if you need to, and make it feel polished and ready to embed in a real app.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab