VS Code Extension: HTML-Markdown Converter
A lightweight VS Code extension that provides fast, bidirectional conversion between HTML and Markdown directly in the editor.
✨ Features
- 🔄 Bidirectional Conversion: Convert HTML to Markdown and Markdown to HTML
- 💻 Editor Integration: Works on selected text or the entire file
- ⌨️ Keyboard Shortcuts: Quick conversion with configurable shortcuts
- 🖱️ Context Menu: Right-click to convert selected content
- ⚡ Fast & Reliable: Built on Turndown and markdown-it
- 📦 Zero Config: Works out of the box with sensible defaults
Usage
Commands
Convert HTML to Markdown - Convert HTML content to Markdown
Convert Markdown to HTML - Convert Markdown content to HTML
Keyboard Shortcuts
- HTML to Markdown:
Cmd+Alt+M (Mac) / Ctrl+Alt+M (Windows/Linux)
- Markdown to HTML:
Cmd+Alt+H (Mac) / Ctrl+Alt+H (Windows/Linux)
Right-click in the editor and select the conversion option from the context menu.
Installation
From Marketplace
- Open VS Code
- Go to Extensions (Cmd+Shift+X)
- Search for "HTML-Markdown Converter"
- Click Install
From Source
- Clone the repository
- Navigate to
vscode-extension directory
- Run
npm install
- Run
npm run package
- Install the generated
.vsix file
Development
cd vscode-extension
npm install
code .
Press F5 to open a new VS Code window with the extension loaded.
License
MIT
| |