Skip to content

Repository files navigation

Unformat

Clean pasted text without changing what it says.

Try it out at jdka1.github.io/Unformat.

Example

### **Important** — “Don’t forget…”

becomes:

Important - "Don't forget..."

Handles

  • Copy/paste whitespace and hidden-character artifacts
  • Smart typography, mojibake, HTML entities, and line-ending cleanup
  • Markdown headings, links, lists, tables, inline code, and fenced code blocks
  • Optional keyboard-style plain text conversion

All processing runs locally in the browser. Unformat preserves wording, protected code, emoji sequences, and multilingual joiners by default.

Tests

Tests

The test suite covers typography, Unicode spaces and joiners, Markdown cleanup, protected code regions, mojibake repair, idempotence, and large input performance.

npm test

About

Clean copy/paste artifacts into useful plain text.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages