Skip to content

A lightweight desktop tool built with Tauri + Rust to batch convert image paths in Markdown files.

License

Notifications You must be signed in to change notification settings

ruali-dev/markdown-image-path-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Image Path Converter

Tauri 2.x Rust Windows Size

🇨🇳 中文文档

A lightweight desktop application that converts local image paths in Markdown files to a unified relative path format.

✨ Features

  • 🎯 One-Click Conversion - Select a Markdown file and convert all image paths instantly
  • 🔍 Live Preview - See all changes before applying them
  • ⚙️ Custom Prefix - Set your own target path prefix (default: upload)
  • 🔄 Extension Conversion - Convert image extensions (e.g., .png.jpg), leave empty to keep original
  • 💾 Flexible Output - Overwrite original file or save as a new file
  • 🎨 Modern UI - Beautiful dark theme with glassmorphism effects
  • 📦 Tiny Size - Only ~2MB installer (compared to 100MB+ for Electron apps)

📸 Screenshot

Application Screenshot

🚀 Installation

Download Installer

Download the latest release from the Releases page.

Build from Source

Prerequisites:

# Clone the repository
git clone https://github.com/ruali-dev/markdown-image-path-converter.git
cd markdown-image-path-converter

# Install dependencies
npm install

# Run in development mode
npm run tauri dev

# Build installer
npm run tauri build

📖 Usage

  1. Launch the application
  2. Click "Browse File" to select a Markdown file
  3. Preview the path conversions in the preview panel
  4. Adjust the target prefix if needed (default: upload)
  5. Click "Convert & Overwrite" or "Save As" to apply changes

Example Conversion

Before After
![img](D:/blog/images/photo.png) ![img](upload/photo.png)
![](C:\Users\docs\screenshot.jpg) ![](upload/screenshot.jpg)

🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Rust
  • Framework: Tauri 2.x
  • Regex: Rust regex crate

📝 License

MIT License - feel free to use this project for any purpose.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.