ChatGPT Math Clipboard

approved

by vofen

Copies ChatGPT Web Viewer responses as Markdown with strict KaTeX-to-LaTeX conversion. - This plugin has not been manually reviewed by Obsidian staff.

163 downloadsUpdated 2mo agoMIT

English | 简体中文 | 繁體中文 | 日本語 | 한국어


ChatGPT Math Clipboard

An Obsidian desktop plugin that copies ChatGPT formulas from the built-in Web Viewer as Markdown that renders correctly in your notes.

When the user clicks ChatGPT's native copy button, the plugin reads the rendered response DOM and copies strict Obsidian Markdown:

  • inline KaTeX becomes $...$
  • display KaTeX becomes $$...$$
  • the clipboard contains plain text only, preventing rich HTML paste handling

The plugin does not guess whether brackets are formulas. It only converts KaTeX nodes that expose an application/x-tex annotation. If ChatGPT changes its DOM and strict extraction fails, native copy behavior is preserved.

Privacy and external services

  • The plugin runs locally inside Obsidian.
  • It only activates for Web Viewer pages whose host is exactly chatgpt.com.
  • It reads the rendered DOM of the ChatGPT response whose native copy button you click and replaces that clipboard write with local plain-text Markdown.
  • It does not make network requests, store account data, or upload note, conversation, or clipboard content.
  • ChatGPT itself remains an external service governed by its own terms and privacy policy.

Requirements

  • Obsidian desktop with the core Web Viewer plugin enabled
  • A ChatGPT tab opened inside Web Viewer

This version was validated against Obsidian 1.12.7 and the ChatGPT DOM available on May 30, 2026.

Development

npm install
npm test
npm run build

The publishable files are written to:

release/chatgpt-math-clipboard/

Install the directory under:

<vault>/.obsidian/plugins/chatgpt-math-clipboard/

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.