Wiki Paste

approvedunreviewed

by xfjbnlsnflb

Preserve copied wiki text when pasting into Obsidian Markdown.

Updated todayMIT

Wiki Paste

Seamless LaTeX copy-paste, Canvas card automation, and smart editor shortcuts for Obsidian.

Obsidian 1.5.0+ License: MIT GitHub Issues


Features at a Glance

1. Copy & Paste LaTeX from Webpages and AI Chats

Copy rendered equations or Markdown responses directly from ChatGPT, DeepSeek, Claude, Gemini, Wikipedia, Zhihu, GitHub, MathJax, or KaTeX and paste them straight into Obsidian — no broken symbols, no duplicated text, and no escaped $ signs.

Web and AI LaTeX Paste into Obsidian

  • Rendered Web Math → Obsidian: Extracts KaTeX, MathJax v2/v3 (with pure MathML fallback), Wikipedia .mwe-math-element, Zhihu data-tex, and Gemini formulas into clean $...$ and $$...$$.
  • AI Chat Delimiters: Automatically converts \(...\) → $...$ (trimmed for Obsidian) and \[...\] → $$...$$ while skipping code blocks and inline code.
  • Internal Copy Safe: Copying and pasting inside Obsidian stays untouched.

2. Canvas Auto-Expand & Card-to-Markdown / Card-to-Card

Work faster in Obsidian Canvas without manual resizing or clipboard loss.

Obsidian Canvas Auto-Expand and Card-to-Card

  • Auto-Expand Pasted Cards: Automatically measures rendered Markdown and expands pasted Canvas text cards so content fits cleanly without inner scrollbars.
  • Card-to-Markdown & Card-to-Card: Copy or cut a single Canvas text card (Ctrl+C / Ctrl+X) and paste its exact Markdown directly into a Markdown note or another Canvas card's editor.

3. Smart Editor Shortcuts (Ctrl+A & Alt + ↑ / ↓)

Familiar editing ergonomics for both Markdown notes and Canvas text cards.

Smart Editor Shortcuts

  • OneNote-Style Ctrl+A (Cmd+A on macOS):
    • 1st press: Selects the current line.
    • 2nd press: Selects the entire note.
  • Move Selected Lines (Alt + ↑ / Alt + ↓): Moves and swaps the current line or multi-line selection up or down while keeping your cursor/selection intact.

Settings Overview

SettingDefaultDescription
Convert and preserve pasted LaTeXONConverts web/AI math HTML and \(...\) / \[...\] to $...$ / $$...$$.
Auto-expand pasted Canvas cardsONResizes Canvas text cards after pasting so content is visible.
Paste copied or cut Canvas cards to Markdown / Canvas cardONPastes a copied/cut Canvas text card into a note or another Canvas card.
OneNote-style Ctrl+A (select line, then all)ONProgressive Ctrl+A / Cmd+A selection in Markdown & Canvas editors.
Move selected lines with Alt+Up/DownONSwap the current line or selected lines up/down with Alt+ArrowUp / Alt+ArrowDown.
[Hack] Escape pasted Markdown syntaxOFFLegacy opt-in: escapes Markdown/Obsidian syntax in plain-text pastes.
[Hack] Show paste options popupOFFPrototype opt-in: shows a Word-style visual paste options menu.
[Hack] Paste web content as raw HTMLOFFExperimental opt-in: inserts raw clipboard HTML unchanged.

Installation

  1. Open Settings → Community plugins → Browse in Obsidian and search for Wiki Paste.
  2. Click Install, then Enable.
  3. Or download main.js, manifest.json, and styles.css from GitHub Releases into <vault>/.obsidian/plugins/wiki-paste/.

Feedback & Issue Reporting

Found a bug or want to request a feature?

  • Inside Obsidian: Open Settings → Wiki Paste → Support & feedback → Report issue, or run the command Wiki Paste: Submit issue / feedback on GitHub from the Command Palette (Ctrl+P). Your plugin version, platform, and enabled options are pre-filled automatically.
  • On GitHub: Open an Issue.

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.