gao-qian-long165 downloadsClean Markdown syntax and automatically convert LaTeX to a compatible format.
A powerful Obsidian plugin for cleaning Markdown formatting and intelligently converting mathematical formulas. Supports hotkey cleaning, paste auto-cleaning, and LaTeX math formula format conversion.
**, __ and other formatting symbols**bold** and italic *italic* unchanged\(...\) to $...$ (inline) and \[...\] to $$...$$ (block)\frac, \sqrt, \sum, matrices, etc.obsidian-markdown-cleaner.obsidian/plugins/ directorygit clone https://github.com/Gao-Qian-Long/obsidian-markdown-cleaner.git
cd obsidian-markdown-cleaner
npm install
npm run build
Third-party plugins → Markdown CleanerSettings → Hotkeys| Original | Converted | Description |
|---|---|---|
\(E = mc^2\) |
$E = mc^2$ |
Inline formula |
\[x = \frac{-b}{2a}\] |
$$x = \frac{-b}{2a}$$ |
Block formula |
\frac{num}{den}\sqrt{}\alpha, \beta, \gamma, \omega, \zeta\sum, \int, \prod\pm, \leq, \geq, \neq, \approx| Setting | Default | Description |
|---|---|---|
| Auto-clean on paste | Enabled | Auto-clean when pasting |
| Show notification | Enabled | Display notification when cleaning |
| Convert math formulas | Enabled | LaTeX conversion |
\(...\) or \[...\] formatnpm install # Install dependencies
npm run dev # Development mode
npm run build # Production build
obsidian-markdown-cleaner/
├── main.ts # Source code
├── main.js # Built plugin
├── manifest.json # Plugin metadata
├── package.json # npm config
├── tsconfig.json # TypeScript config
├── esbuild.config.mjs # Build config
└── README.md # Documentation
Welcome! Submit Issues and Pull Requests.
MIT License
一个功能强大的 Obsidian 插件,专门用于清理 Markdown 格式并智能转换数学公式。支持快捷键清理、粘贴自动清理和 LaTeX 数学公式格式转换。
**、__ 等格式符号**bold**、斜体 *italic* 不变\(...\) → $...$(行内公式),\[...\] → $$...$$(块级公式)\frac、\sqrt、\sum、矩阵等obsidian-markdown-cleaner.obsidian/plugins/ 目录git clone https://github.com/Gao-Qian-Long/obsidian-markdown-cleaner.git
cd obsidian-markdown-cleaner
npm install
npm run build
第三方插件 → Markdown Cleaner设置 → 快捷键| 原始格式 | 转换结果 | 说明 |
|---|---|---|
\(E = mc^2\) |
$E = mc^2$ |
行内公式 |
\[x = \frac{-b}{2a}\] |
$$x = \frac{-b}{2a}$$ |
块级公式 |
\frac{分子}{分母}\sqrt{}\alpha、\beta、\gamma、\omega、\zeta\sum、\int、\prod\pm、\leq、\geq、\neq、\approx| 选项 | 默认 | 说明 |
|---|---|---|
| 粘贴时自动清理 | 开启 | 粘贴内容时自动清理 |
| 显示通知 | 开启 | 清理完成后显示通知 |
| 转换数学公式 | 开启 | LaTeX 格式转换 |
\(...\) 或 \[...\] 格式npm install # 安装依赖
npm run dev # 开发模式
npm run build # 生产构建
obsidian-markdown-cleaner/
├── main.ts # 源代码
├── main.js # 构建后的插件
├── manifest.json # 插件元数据
├── package.json # npm配置
├── tsconfig.json # TypeScript配置
├── esbuild.config.mjs # 构建配置
└── README.md # 文档
欢迎提交 Issue 和 Pull Request!
MIT License
希望这个插件能提升你在 Obsidian 中的编辑体验! 🚀