Skip to content

🧁 MarzipanFramework-agnostic markdown editor

Live overlay preview, zero runtime dependencies, and batteries-included formatting actions.

Marzipan Logo

Quick Install

bash
npm install @pinkpixel/marzipan

Create Your First Editor

ts
import { Marzipan } from "@pinkpixel/marzipan";

const [editor] = new Marzipan("#my-textarea", {
  toolbar: true,
  theme: "cave",
  smartLists: true,
});

Use the Bundled Actions

ts
import { actions } from "@pinkpixel/marzipan";

const textarea = document.querySelector("textarea")!;
actions.toggleBold(textarea);

Add a Plugin

ts
import { tablePlugin } from "@pinkpixel/marzipan/plugins/tablePlugin";

new Marzipan("#editor", {
  plugins: [tablePlugin()],
});

Bundled Plugins

PluginDescription
tablePluginToolbar-driven table generator with inline editing controls
tableGridPluginGrid overlay for rapid column/row creation
tableGeneratorPluginQuick GFM table inserter with prompt-driven sizing
tinyHighlightPluginZero-runtime syntax highlighting for fenced code blocks
imageManagerPluginDropzone and gallery UI for inserting images and managing uploads
imagePickerPluginToolbar button for inserting images via URL or optional uploader callback
mermaidPluginDiagram rendering via ESM import
mermaidExternalPluginMermaid integration via CDN script tag
BlockHandlesPluginInteractive block manipulation with visual handles, context menus, and keyboard shortcuts

See the full Plugin Catalogue for configuration details.

Released under the Apache 2.0 License.