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

推荐订阅源

A
About on SuperTechFans
小众软件
小众软件
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
博客园_首页
N
Netflix TechBlog - Medium
IT之家
IT之家
H
Help Net Security
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
罗磊的独立博客
T
Tailwind CSS Blog
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
V
V2EX
量子位
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
博客园 - 司徒正美
The Cloudflare Blog
Engineering at Meta
Engineering at Meta

HN's home page

Rainbow Query Language | Hacker News Exec into Node via Kubectl An AI native hedge fund The Seven-Action Documentation Model | Hacker News Package Manager for Kubectl Plugins Tongan Castaways | Hacker News Tech overlords plan for conscious AI to conquer the cosmos. What could go wrong? Data Breach Disclosure Lag Is Getting Worse How LLMs Work | Hacker News I Dropped PRDs for Shape Up Go Experiments Explained | Hacker News FCA's Palantir deal could expose UK financial data to Trump's US, critics fear WebXR BCI for Neural-Adaptive Avatar Control in Mixed Reality The first murder conviction via DNA analysis Tom Interviews Theo de Raadt of the OpenBSD Project (2019) [video] Show HN: Replace shell commands with bun shell typescript scripts Quay.io Is Down | Hacker News AI driven analysis of brokerage account fees in the UK Bill Gates Spent Years Crafting His Image. Now It's Cracking Using LLMs to secure source code Wi-Fi 8 in the Lab [video] The household battery revolution that could change energy bills and the world Is Python Becoming Pinyin? | Hacker News Livia – Executive Assistant | Hacker News FindMyPipe – Query Apple Find My from Linux for AI Agents Show HN: Agent skill for creating product launch videos with Remotion RecruitMyself – AI job search copilot for resumes and applications AI coding agents and the erosion of system understanding The 'Resting' Generation and South Korea's Youth Recession AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029
Native-first Markdown editor: Works like a standard textarea
nezanuha · 2026-06-03 · via HN's home page

Most Markdown editors replace the textarea entirely. You lose native form submission, you need axios or fetch to collect the value, and you're locked into a custom API just to get or set content.

This plugin takes a native-first approach. Just initialize it — your textarea becomes a full advanced Markdown editor while still working exactly like a native textarea.

Backend developers: your form submits as normal.

new MarkdownEditor('#editor');

$_POST['content'], request.form['content'], params[:content] — nothing changes on your end.

Frontend developers: get and set content the same way you always have.

// get document.getElementById('editor').value

// set document.getElementById('editor').value = '## Hello' // editor UI updates automatically

No axios. No interceptors. No custom APIs. Just native textarea behavior you already know.

Configure as needed:

new MarkdownEditor('#editor', { mode: 'hybrid', toolbar: ['bold', 'italic', 'code', 'table', 'image', 'preview'], fileInput: { uploadUrl: '/api/upload', accept: ['webp', 'avif'] } });

Two modes: Plain (raw Markdown) or Hybrid (WYSIWYG-style, renders live as you type).

Also includes: real-time preview, undo/redo with cursor restore, GitHub-style list continuation, image uploads to your own server, modular toolbar, RTL support, dark mode, ARIA accessible, zero CSS bleed, ~116KB minified. ESM / UMD / CJS / IIFE / CDN.

npm install markdown-text-editor Docs: https://frutjam.com/plugins/markdown-editor