Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

AI Paste Cleaner

Atlas CreativeAtlas Creative45 downloads

Clean markdown pasted from AI chats: fix math delimiters, remove citation markers and copy-button text, normalize lists, and tidy whitespace.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Paste from ChatGPT, Claude, Gemini or Grok into Obsidian and get clean markdown, automatically.

What it fixes

  • Math delimiters: \( x \) becomes $x$ and \[ ... \] becomes a $$ block, so Obsidian renders it.
  • Citation markers: removes [1], [1][2], [1, 3] and 【4:0†source】. Markdown links, footnotes ([^1]) and reference definitions are kept.
  • Copy-button text: removes leftover Copy code lines and the language label above them.
  • Lists: turns •, ◦ and ▪ bullets into markdown lists and 1) into 1..
  • Whitespace: removes invisible zero-width characters, converts non-breaking spaces, trims trailing spaces (keeping two-space line breaks) and collapses extra blank lines.
  • Optional: remove a trailing "Sources:" list, replace em dashes, straighten curly quotes.

Code blocks and inline code are never changed.

Usage

With Clean on paste on (the default), just paste. If the text has nothing to fix, Obsidian pastes it normally.

Commands:

  • Clean selection (or whole note)
  • Paste and clean (for when Clean on paste is off)
  • Paste without cleaning

Every rule can be turned on or off in Settings → AI Paste Cleaner.

Installation

Manual

Copy main.js and manifest.json into <your vault>/.obsidian/plugins/ai-paste-cleaner/, then enable the plugin in Settings → Community plugins.

Development

npm install
npm test        # unit tests for the cleaning rules
npm run build   # type-check and build main.js

Privacy

Everything runs locally. The plugin makes no network requests.

License

0BSD

HealthExcellent
ReviewSatisfactory
About
Paste from ChatGPT, Claude, Gemini or Grok and get clean markdown automatically. AI Paste Cleaner converts math delimiters so equations render in Obsidian, removes citation markers and leftover copy-button text, turns stray bullets into proper markdown lists, and tidies invisible characters, trailing spaces and extra blank lines. Code blocks and inline code are never changed. Markdown links, footnotes and reference definitions are kept. Every rule can be turned on or off, and optional rules can remove a trailing Sources list, replace em dashes and straighten curly quotes. Use it automatically on paste, or run commands to clean a selection or whole note, paste and clean, or paste without cleaning. Everything runs locally, with no network requests.
MarkdownFormattingAutomation
Details
Current version
1.0.2
Last updated
2 weeks ago
Created
2 weeks ago
Updates
3 releases
Downloads
45
Compatible with
Obsidian 1.1.0+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Sponsor
GitHub Sponsors
Support
Author
Atlas CreativeAtlas Creativeatlas-creative
atlascreative0.gumroad.com/
GitHubbzucker4
  1. Community
  2. Plugins
  3. Markdown
  4. AI Paste Cleaner

Related plugins

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Text Format

Format selected text upper/lower/capitalize.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

PanGu

Add spaces between Chinese characters and English alphabet. A boon for typographically compulsive people.

Auto Link Title

Automatically fetches the titles of links from the web.

Blur

Create obfuscated blocks of text.

Link Embed

Convert URLs in your notes into embeded previews.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Admonition

Admonition block-styled content.

BRAT

Easily install a beta version of a plugin for testing.