ChatGPT Math Clipboard

by vofen
5
4
3
2
1
New Plugin

Description

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

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

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/