README file from
GithubEm Dash Replace
A simple Obsidian plugin that automatically replaces double dashes ( --) with em dashes (—) as you type.
Features
- Automatically converts
--to—when typing - Respects code blocks and inline code (won't replace dashes inside code)
- Works on desktop and mobile
Manual Installation
- Download
main.js,manifest.json, andstyles.css(if present) from the latest release - Copy them to
<Vault>/.obsidian/plugins/em-dash-replace/ - Reload Obsidian and enable the plugin in Settings → Community plugins
Usage
Simply type -- (space followed by two dashes) and it will automatically be replaced with an em dash (—).
The plugin will not replace dashes inside code blocks or inline code to preserve your code formatting.
Development
npm install
npm run dev