ChatGPT Math Clipboard

by vofen
5
4
3
2
1
Score: 50/100

Description

An Obsidian plugin for copying ChatGPT Web Viewer responses into Obsidian-friendly Markdown with strict KaTeX-to-LaTeX conversion.

Reviews

No reviews yet.

Stats

0
stars
269
downloads
0
forks
112
days
115
days
115
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
1
commits

README file from

Github

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/