Atlas Creative45 downloadsClean markdown pasted from AI chats: fix math delimiters, remove citation markers and copy-button text, normalize lists, and tidy whitespace.
Paste from ChatGPT, Claude, Gemini or Grok into Obsidian and get clean markdown, automatically.
\( x \) becomes $x$ and \[ ... \] becomes a $$ block, so Obsidian renders it.[1], [1][2], [1, 3] and 【4:0†source】. Markdown links, footnotes ([^1]) and reference definitions are kept.Copy code lines and the language label above them.•, ◦ and ▪ bullets into markdown lists and 1) into 1..Code blocks and inline code are never changed.
With Clean on paste on (the default), just paste. If the text has nothing to fix, Obsidian pastes it normally.
Commands:
Every rule can be turned on or off in Settings → AI Paste Cleaner.
Copy main.js and manifest.json into <your vault>/.obsidian/plugins/ai-paste-cleaner/, then enable the plugin in Settings → Community plugins.
npm install
npm test # unit tests for the cleaning rules
npm run build # type-check and build main.js
Everything runs locally. The plugin makes no network requests.
0BSD