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.
- Provide
Copy Button
. - Provide
Line Number
. - Show
Language Name
. - Custom exclusion language.
- Enhance contextmenu in code block.
- Open Obsidian
- Settings -> Community plugins -> Turn off Safe Mode
- Browes community plugins and search
Code Block Enhancer
- Install and enable
- Download
main.js
,styles.css
,manifest.json
in the latest release - Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/
. - Enable plugin in Obsidian setting.
- Clone this repo.
npm i
oryarn
to install dependenciesnpm run build
to build file in./dist
.- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/
. - Enable plugin in Obsidian setting.