A simple Obsidian plugin that automatically replaces double dashes ( --) with em dashes (—) as you type.
-- to — when typingmain.js, manifest.json, and styles.css (if present) from the latest release<Vault>/.obsidian/plugins/em-dash-replace/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.
npm install
npm run dev