Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

mdfit - Fit Any Markdown

che1syche1sy114 downloads

Auto-convert pasted LLM output (ChatGPT / Claude / Gemini) into Obsidian-flavored Markdown: math delimiters, headings, citations, tables.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

An Obsidian plugin that auto-converts pasted LLM output (ChatGPT / Claude / Gemini) into clean Markdown the moment it lands in a note — no manual cleanup.

Paste from an AI chat and get, instantly:

  • Math that renders: \(...\) → $...$, \[...\] → $$...$$, LaTeX environments wrapped, mid-sentence display math kept on its own lines.
  • Correct heading levels (ChatGPT's shallow ### headings promoted to #).
  • Citation noise like 【20†L33-L40】 and dangling [1] stripped.
  • Real Markdown tables and task lists recovered from chat-app HTML.
  • **Note:** paragraphs turned into Obsidian callouts.
  • Tidy CJK ↔ Latin spacing, zero-width characters and "Copy code" junk removed.

Code blocks, inline code and math are never touched — conversion is guarded by a protection layer, so examples inside your notes stay byte-identical.

Usage

Just paste into any note (Ctrl+V). The plugin converts the clipboard content (plain text, or the rich HTML flavor when it carries tables/KaTeX) and inserts the result. Toggle it at any time with the command "mdfit: Toggle paste conversion on/off".

Install

From the community directory (recommended)

Settings → Community plugins → Browse → search "mdfit" → Install.

Manual install

  1. Download main.js and manifest.json from the latest release.
  2. Copy both files into <your-vault>/.obsidian/plugins/mdfit/.
  3. Enable mdfit - Fit Any Markdown in Settings → Community plugins.

Development

The source code lives in the md-fit-all monorepo (packages/obsidian-plugin), alongside the mdfit CLI and the conversion engine mdfit-core. This repository is the release channel for the Obsidian community directory.

MIT License.

HealthExcellent
ReviewPassed
About
Convert pasted LLM output into clean Obsidian Markdown instantly. Convert math (\(...\)→$...$, \[...\]→$$...$$) and LaTeX environments, promote shallow headings, strip citation clutter, recover real tables and task lists from chat HTML, tidy CJK Latin spacing, remove zero‑width and Copy code junk while preserving code, inline code and math exactly.
MarkdownAutomation
Details
Current version
0.1.1
Last updated
3 weeks ago
Created
3 weeks ago
Updates
2 releases
Downloads
114
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
che1syche1synaloam
GitHubnaloam
  1. Community
  2. Plugins
  3. Markdown
  4. mdfit - Fit Any Markdown

Related plugins

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Auto Link Title

Automatically fetches the titles of links from the web.

Link Embed

Convert URLs in your notes into embeded previews.

Templater

Create and use dynamic templates.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Advanced URI

Control everything with URI.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

QuickAdd

Quickly add new notes or content to your vault.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.