惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
F
Full Disclosure
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
G
Google Developers Blog
C
Check Point Blog
GbyAI
GbyAI
A
About on SuperTechFans
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
T
Tor Project blog
AWS News Blog
AWS News Blog
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
MongoDB | Blog
MongoDB | Blog
Latest news
Latest news
aimingoo的专栏
aimingoo的专栏
U
Unit 42
Y
Y Combinator Blog
P
Privacy International News Feed
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
S
Schneier on Security
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
P
Proofpoint News Feed
C
Cisco Blogs
Webroot Blog
Webroot Blog
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
月光博客
月光博客
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
Cloudbric
Cloudbric
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - deftio/quikdown: Fast, secure markdown parser with bidirectional HTML conversion, plugin system, and live editor. Zero dependencies, XSS-safe by default. 15KB core / 99KB editor.
deftio · 2026-06-20 · via Hacker News: Show HN

CI npm version Coverage License: BSD-2-Clause Bundle Size

Quikdown is a small, safe, bidirectional Markdown parser with a drop-in editor for browser and Node.js apps — with rich fenced-block rendering, Markdown ↔ HTML round-tripping, undo/redo, headless APIs, MCP tools, and a standalone offline build.

It is useful anywhere Markdown needs to remain the source of truth while users edit either the source or rendered view: docs, dashboards, CMS fields, internal tools, local/offline apps, chat UIs, and human/LLM co-editing workflows.

Try the Editor | Live Site | Examples | Downloads | Docs

quikdown editor demo — markdown, Mermaid diagram, MathJax equation, and syntax-highlighted code

Split-mode view: Markdown source on the left, rendered preview on the right — with rendered Mermaid diagrams, MathJax equations, syntax-highlighted code, and other rich fences.

Why Quikdown?

Most Markdown libraries are either parsers, previewers, textarea editors, or large editor frameworks. Quikdown is meant to be a compact Markdown document surface: parse Markdown, render rich fences, edit source or rendered output, round-trip back to Markdown, and embed the whole thing with one import.

The original use case was LLM-assisted editing, where a model and a human both work on the same Markdown document. But the same requirements show up in many ordinary applications: CMS fields, documentation tools, internal dashboards, report builders, offline field tools, chat interfaces, and apps that need diagrams, math, tables, charts, maps, or other rich content inside Markdown without adopting a heavyweight editor stack.

Quikdown intentionally does not try to be a full CommonMark implementation or a ProseMirror replacement. It covers a practical Markdown subset and focuses on small size, safe defaults, bidirectional editing, rich fenced content, offline deployment, and simple application integration.

Highlights

  • Drop-in editor — one <div>, one import. Source, split, and preview modes with toolbar, themes, undo/redo, copy-as-rich-text, and rich fence rendering.
  • Bidirectional Markdown Parser Lib — convert Markdown → HTML and supported Quikdown HTML → Markdown. Edit the rendered side and get Markdown back.
  • Rich fences — built-in editor renderers for syntax-highlighted code, Mermaid, MathJax, SVG, CSV/TSV/PSV tables, GeoJSON maps, STL models, ABC music notation, Vega/Vega-Lite charts, and sanitized raw HTML.
  • Small core — approximately 15–17 KB minified for the parser, with zero runtime dependencies.
  • Safe by default — HTML is escaped, unsafe URL schemes are blocked, and the core parser uses no eval or dynamic regular expressions.
  • Offline standalone build — a self-contained editor bundle for air-gapped, regulated, local, field, or desktop-app use with rich fence support.
  • LLM/agent friendly — stream Markdown into the editor, let an agent modify the document, and roll back mistakes with programmatic undo/redo.
  • Headless API — run the editor without a toolbar and wire it into your own UI or automation layer.
  • MCP server — 24 tools for parsing, file operations, and editor control over JSON-RPC 2.0.
  • Structured output — companion AST, JSON, YAML, and AST-to-HTML modules.

Modules

Use only the pieces you need.

Module Size Purpose
quikdown.js ~15–17 KB Markdown → HTML parser. Safe defaults, fence plugin callbacks, inline styles or CSS classes.
quikdown_bd.js ~20 KB Bidirectional Markdown ↔ HTML conversion.
quikdown_edit.js ~98 KB Drop-in split-view headless editor control with undo/redo, toolbar, themes, copy-as-rich-text, and lazy-loaded fence plugins.
quikdown_edit_standalone.js ~7.7 MB / ~1 MB gzipped Offline editor with all fence libraries bundled. No CDN required.
quikdown_mcp.js ~26 KB MCP server with 24 tools for AI agents.
quikdown_ast / json / yaml / ast_html ~5–8 KB each Companion modules for structured output and AST-based rendering.

Install

Quikdown is available on npm and can also be loaded directly from UNPKG or jsDelivr.

Browser via ES module

<script type="module">
  import quikdown from 'https://unpkg.com/quikdown/dist/quikdown.esm.min.js';

  document.body.innerHTML = quikdown('# Hello World');
</script>

Browser via UMD

<script src="https://unpkg.com/quikdown/dist/quikdown.umd.min.js"></script>
<script>
  document.body.innerHTML = quikdown('# Hello World');
</script>

Quick start

Quikdown has three common entry points: the core parser, the bidirectional parser, and the editor.

Markdown → HTML

Use quikdown when you only need Markdown rendering.

import quikdown from 'quikdown';

const markdown = '# Hello World\n\nThis is **Markdown**.';
const html = quikdown(markdown);

document.body.innerHTML = html;

You can choose inline styles or CSS classes.

const html = quikdown(markdown, {
  inline_styles: true
});

Markdown ↔ HTML

Use quikdown_bd when you need rendered HTML that can be converted back to Markdown.

import quikdown_bd from 'quikdown/bd';

const html = quikdown_bd(markdown);
const markdownAgain = quikdown_bd.toMarkdown(html);

Quikdown’s HTML → Markdown conversion is designed for Quikdown-generated HTML and supported Markdown structures. It is not intended to be a generic arbitrary-HTML-to-Markdown converter.

Standard Markdown structures such as headings, text styles, links, lists, blockquotes, tables, and code fences are supported. For custom fences, Quikdown relies on its tag system or third-party handlers to provide reverse conversion.

Drop-in editor

Use QuikdownEditor when you want source, split, or preview editing in the browser.

const editor = new QuikdownEditor('#container', {
  mode: 'split',           // 'source', 'split', or 'preview'
  theme: 'auto',           // 'light', 'dark', or 'auto'
  plugins: {
    highlightjs: true,
    mermaid: true,
    mathjax: true
  }
});

editor.setMarkdown('# Content\n\nTo be quik or not to be.');
const markdown = editor.getMarkdown();

The editor can also run headless, without the built-in toolbar.

const editor = new QuikdownEditor('#container', {
  mode: 'split',
  showToolbar: false
});

editor.setMarkdown(markdown);
editor.undo(); 
editor.redo();
editor.setTheme('dark');
editor.setMode('preview');

Rendering support (fences)

Quikdown’s editor can render common fenced block formats while preserving the original fence source for round-trip editing. Note that quikdown itself can't support reverse editing for specialty fences such as mermaid or MathJax but callbacks are provided so those can be handled on a case-by-case basis.

Built-in editor fence handlers include:

  • js, javascript, python, c, cpp, and other code fences via highlight.js
  • mermaid diagrams
  • math, tex, latex, and katex equations via MathJax
  • svg inline graphics
  • csv, tsv, and psv tables
  • geojson maps via Leaflet
  • stl 3D models via Three.js
  • abc and music sheet music via ABCJS
  • vega, vega-lite, and vegalite charts
  • html fences sanitized with DOMPurify

Fence libraries are lazy-loaded by the editor when needed. Use the standalone build when you need everything bundled with no network access.

Custom fence handlers use a small callback API.

const fencePlugin = {
  render: (content, language) => {
    if (language === 'mermaid') {
      return renderMermaid(content);
    }

    return undefined; // fall back to default handling
  }
};

const html = quikdown(markdown, {
  fence_plugin: fencePlugin
});

Security model

Quikdown’s core parser escapes HTML by default. Only safe Markdown constructs become HTML unless a fence plugin explicitly renders additional content.

const unsafe = '<script>alert("XSS")</script> **bold**';
const safe = quikdown(unsafe);

// &lt;script&gt;alert("XSS")&lt;/script&gt; <strong>bold</strong>

Security-related defaults and checks include:

  • HTML escaped by default
  • URL sanitization for links and images
  • Blocking of javascript:, vbscript:, and non-image data: URIs
  • No eval
  • No dynamic RegExp
  • Static regex patterns checked for ReDoS risk
  • DOMPurify used by the built-in editor for raw HTML fences
  • ESLint security checks enforced in CI

Fence plugins are trusted extension points. If a custom plugin returns HTML, that plugin is responsible for sanitizing what it renders.

For the full model, see docs/security.md.

AST, JSON, and YAML output

Quikdown includes companion libraries for converting Markdown into structured data formats.

import quikdown_ast from 'quikdown/ast';
import quikdown_json from 'quikdown/json';
import quikdown_yaml from 'quikdown/yaml';
import quikdown_ast_html from 'quikdown/ast-html';

const markdown = '# Hello\n\nWorld **bold**';

const ast = quikdown_ast(markdown);
const json = quikdown_json(markdown);
const yaml = quikdown_yaml(markdown);

const html = quikdown_ast_html(ast);

The AST parsers are forgiving and handle malformed Markdown gracefully without throwing errors. See AST Documentation for the complete node type reference.

Common integration patterns

Quikdown supports three common integration styles.

Pattern Use when Entry point
Parse-only You need safe Markdown rendering or structured output in an app import quikdown from 'quikdown'
File agent An AI agent reads and writes Markdown/HTML files in a repo sandbox npx quikdown-mcp --root=.
Doc copilot A human edits in the browser while an agent controls the same document node examples/mcp-doc-host/start-mcp.js

The parse-only path is the default: zero config, browser or Node.js, and no runtime dependencies in the core parser.

The file-agent path adds MCP filesystem tools under a sandbox root. This is useful when the human stays in Cursor, VS Code, or another file editor.

The doc-copilot path opens a browser editor and lets an MCP client control the same live document through a Node bridge.

For details, see docs/llm-integration.md, docs/quikdown-mcp.md, and examples/mcp-doc-host.

LLM and agent workflows

Quikdown fits the loop where a model writes Markdown, a human sees rendered output, and both continue editing the same document.

Pattern Demo / docs
AI canvas: chat + document editor examples/ai-canvas
Agent tool-calling on editor content examples/llm-tool-editor
MCP doc copilot examples/mcp-doc-host
Stream into QuikdownEditor examples/llm-stream-editor
Stream tokens into rendered HTML integration-llm-stream
Chat bubbles with Markdown quikchat and integration example

Overview: docs/llm-integration.md

MCP server

Quikdown includes an MCP server that lets AI agents parse Markdown, convert between formats, read/write files, and, with a doc host, control the editor — all over JSON-RPC 2.0.

Two paths

Path Human UI Command
A — IDE Cursor / VS Code file editor; no browser npx quikdown-mcp --root=.
B — Doc copilot Browser tab with QuikdownEditor; Node host bridges MCP node examples/mcp-doc-host/start-mcp.js

Path A is for repo/file workflows. Path B is for live document workflows where the human edits in the browser while the agent uses MCP against the same editor state.

npm install quikdown
npx quikdown-mcp --root=.

MCP tools

Quikdown currently exposes 24 MCP tools in three groups.

Group Tools Activated by
Headless markdown_to_html, html_to_markdown, markdown_stats, quikdown_info, markdown_to_ast, markdown_to_json Always
Filesystem read_file_info, read_file_lines, read_file_markdown, write_markdown_to_file, write_html_to_file --root flag
Editor read_editor, write_editor, find_regex, replace_regex, replace_text, extract_text, get_stats, get_html, undo, redo, load_file_to_editor, get_rendered, write_rendered_to_file Editor binding

Cursor configuration: Path A

{
  "mcpServers": {
    "quikdown": {
      "command": "npx",
      "args": [
        "quikdown-mcp",
        "--root=."
      ]
    }
  }
}

Cursor configuration: Path B

From the Quikdown repo, run npm run build first, then configure:

{
  "mcpServers": {
    "quikdown-doc": {
      "command": "node",
      "args": [
        "examples/mcp-doc-host/start-mcp.js"
      ]
    }
  }
}

This opens a browser tab with QuikdownEditor. You edit in the browser while the agent uses MCP.

See examples/mcp-doc-host/README.md.

Claude Desktop: Path A

{
  "mcpServers": {
    "quikdown": {
      "command": "npx",
      "args": [
        "quikdown-mcp",
        "--root=."
      ]
    }
  }
}

Programmatic MCP use

import { createMcpServer } from 'quikdown/mcp';

const mcp = createMcpServer({ root: '.' });
const result = mcp.callTool('markdown_to_html', {
  markdown: '# Hello'
});

Full documentation: docs/quikdown-mcp.md | MCP setup page

Streaming

Quikdown’s parser is fast enough to re-parse the full buffer on every incoming chunk, so you do not need to manage incremental parser state.

Stream tokens into rendered HTML

let buffer = '';

for await (const chunk of llmStream) {
  buffer += chunk;
  previewEl.innerHTML = quikdown(buffer, {
    lazy_linefeeds: true
  });
}

Stream tokens into QuikdownEditor

let buffer = '';

for await (const chunk of llmStream) {
  buffer += chunk;
  await editor.setMarkdown(buffer);
}

Incomplete fences are handled gracefully. They render as plain text until the closing fence arrives.

See docs/llm-integration.md for production patterns such as debouncing and undo grouping.

Undo and redo

The editor maintains a configurable undo stack. The default is 100 states.

Keyboard shortcuts work out of the box.

Action Shortcut
Undo Ctrl+Z / Cmd+Z
Redo Ctrl+Shift+Z / Ctrl+Y
const editor = new QuikdownEditor('#container', {
  undoStackSize: 200,
  showUndoRedo: true
});

editor.undo();
editor.redo();

editor.canUndo();
editor.canRedo();

editor.clearHistory();

This is useful for ordinary editing and especially useful for human + agent workflows. Agents make mistakes, and users need reversible edits.

Undo and redo are also available as MCP tools in Path B.

Full API: docs/quikdown-editor.md

Copy as rich text

The editor can copy the rendered preview to the clipboard, including images, tables, and rendered fences.

This is useful when pasting Markdown-derived content into tools such as Gmail, Word, etc.

Styling

Quikdown supports built-in styling for a batteries-included experience, or you can bring your own CSS.

Inline styles

quikdown('**bold**', {
  inline_styles: true
});

// <strong style="font-weight: bold;">bold</strong>

CSS classes

Class-based styling is the default.

quikdown('**bold**');

// <strong>bold</strong>

Use the included CSS files as starting points:

  • dist/quikdown.light.css
  • dist/quikdown.dark.css

Configuration

const html = quikdown(markdown, {
  lazy_linefeeds: true,    // single newlines become <br>
  inline_styles: false,    // use CSS classes instead of inline styles
  fence_plugin: {
    render: myHandler
  }
});

Optional features include heading IDs, reference-style links, and footnotes.

const html = quikdown(markdown, {
  heading_ids: true,
  reference_links: true,
  footnotes: true
});

TypeScript

Quikdown includes TypeScript definitions for all modules.

import quikdown, {
  QuikdownOptions,
  FencePlugin
} from 'quikdown';

const fencePlugin: FencePlugin = {
  render: (content: string, language: string) => {
    return `<pre class="hljs ${language}">${content}</pre>`;
  }
};

const options: QuikdownOptions = {
  inline_styles: true,
  fence_plugin: fencePlugin
};

const html: string = quikdown(markdown, options);

Supported Markdown

Quikdown supports the Markdown structures most commonly used in application content.

Text formatting

  • **bold**
  • *italic*
  • ~~strikethrough~~
  • `code`

Blocks

  • Headings: # H1 through ###### H6
  • Paragraphs
  • Blockquotes
  • Horizontal rules
  • Fenced code blocks
  • Tables
  • Ordered lists
  • Unordered lists
  • Task lists

Links and media

  • Inline links: [text](url)
  • Automatic URL detection
  • Images
  • Optional heading slugs with heading_ids: true

Reference-style links and footnotes are available as opt-in features.

For the complete syntax reference, see docs/.

Framework integration

Quikdown works with React, Vue, Svelte, Angular, and plain browser apps.

See Framework Integration Guide.

For LLM and agent patterns, see LLM Integration.

Standalone / air-gapped build

The standalone editor bundles all fence libraries. No CDN or network access is required.

# Download from GitHub Releases
# or build locally:
npm run build:standalone
<div id="editor"></div>
<script src="quikdown_edit_standalone.umd.min.js"></script>
<script>
  const editor = new QuikdownEditor('#editor', {
    mode: 'split'
  });

  editor.setMarkdown('# Works offline');
</script>

Use cases include:

  • Air-gapped networks
  • Regulated environments
  • Offline demos
  • Field deployments
  • Local-first tools
  • Electron and Tauri apps
  • Desktop apps such as QuikLeaf

See docs/standalone-editor.md for the full list of bundled libraries and build details.

Pre-built zip files are available on GitHub Releases.

Comparison

Quikdown overlaps with Markdown parsers, textarea-based Markdown editors, and larger editor frameworks, but it makes a different set of tradeoffs.

Quikdown marked markdown-it ProseMirror + Markdown
Parser size ~15–17 KB ~40 KB ~100 KB ~200 KB+
Editor included Yes, ~98 KB No No Yes, large stack
Bidirectional Markdown ↔ HTML Yes No No Yes, with framework integration
Rich fence rendering Built into editor Plugin/custom Plugin/custom Plugin/schema work
Fence round-trip preservation Yes No No Custom implementation
XSS-safe by default Yes No, opt-in No, opt-in Depends on schema
Streaming-friendly Yes Yes Yes More complex
Offline standalone build Yes N/A N/A Custom bundling
Runtime deps, core parser 0 0 0 Many
MCP server Included No No No
CommonMark coverage Practical subset Broad/full Broad/full Depends on stack

Quikdown intentionally trades full CommonMark coverage for a smaller, more integrated package.

If you need full spec compliance, use a spec-complete parser. If you need a full collaborative block editor, use a larger editor framework. Quikdown is for compact Markdown rendering/editing where small size, safety, fences, round-tripping, and application integration matter.

What Quikdown is not

Quikdown makes deliberate tradeoffs.

  • Not a full CommonMark parser — definition lists and some edge-case syntax are intentionally omitted. Reference-style links and footnotes are available as opt-in features.
  • Not a generic HTML-to-Markdown converter — bidirectional conversion is designed for Quikdown-generated HTML and supported Markdown structures.
  • Not a block editor framework — the editor is Markdown-first, not a Notion-style or ProseMirror-style block editor.
  • Not a giant editor stack — no virtual DOM requirement, no complex state store, and no large plugin framework.

Raw HTML and SVG can be rendered through fence plugins with appropriate sanitization. The built-in editor uses DOMPurify for the html fence.

Related projects

  • QuikChat — simple chat UI library that can use Quikdown for Markdown rendering.
  • QuikLeaf — offline desktop app built around the standalone Quikdown editor.

API reference

For complete API documentation, see docs/api-reference.md.

Contributing

Contributions are welcome. See CONTRIBUTING.md for development setup, build steps, and contribution guidelines.

License

BSD 2-Clause — see LICENSE.txt.

Acknowledgments

  • Inspired by the simplicity of other Markdown parsers and projects
  • Built for the QuikChat project
  • Informed by the CommonMark spec and practical Markdown usage in modern apps

Support