This is a plugin for Obsidian (https://obsidian.md).
Inspired by obsidian-code-block-copy.
Note: The Obsidian API is still in early alpha and is subject to change at any time!
Enhancer the markdown code block in preview mode.
- Line Numbers (Support line break)
- Line Highlighting
- Language Label
- Code Snapshot (Export to Image)
- Enhanced Context Menu
- ......
- Install the BRAT Plugin
- Execute command
Obsidian42 - BRAT: Add a beta plugin for testing - Paste the URL of this repository and confirm
- Enable plugin in Obsidian setting.
- Clone this repo.
npm ioryarnto install dependenciesnpm run buildto build file in./dist.- Copy over
main.js,styles.css,manifest.jsonto your vaultVaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/. - Enable plugin in Obsidian setting.
- Download
main.js,styles.css,manifest.jsonin the latest release - Copy over
main.js,styles.css,manifest.jsonto your vaultVaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/. - Enable plugin in Obsidian setting.



