The editor writes paragraphs, headings, quotes, lists, code blocks and dividers, with bold, italic, underline, strikethrough, code and links. Its value is HTML, or Markdown with format="markdown", and it works with forms.

It keeps its own document and handles every edit, so what’s pasted or dropped reaches the page only as that document: structure and formats stay, from Google Docs and Word too, and scripts, styles and unsafe links go.

Type Markdown and it turns into formats: # starts a heading, - a list, and **bold** and `code` format as you close them. Every format has its shortcut and its toolbar button.

A comment

tools picks the toolbar’s buttons. Type Markdown, paste from anywhere, and see the HTML the editor keeps.


Type **bold**, - a list, or paste from anywhere.

Markdown in and out

With format="markdown", the value is Markdown: read in with nested lists, quotes and code, and written back as you edit.

Nested lists

Indent and Outdent nest list items, as Tab and Shift + Tab do. The default toolbar has them only on touch screens, which have no Tab key; list them in tools to show them everywhere.