obsidian-advanced-codeblock
obsidian-advanced-codeblock copied to clipboard
An obsidian plugin that give additional features to code blocks.
Obsidian Advanced Codeblock
Add additioinal features to code blocks.
Demo
Feature
- Add line numbers to code block
- Add line highlight to code block
Usage
All features won't apply universally, if you need any feature, you need to correctly specify params to specific code block. Params should be split by ' '
.
Feature | param | description |
---|---|---|
show line numbers | nums | |
highlight line | {a, b-c} | brackets matter |
Notice
-
Code block won't update in preview mode if you only change params of blocks.
Obsidian cache every section of artical, but it directly ignore anything follows the first space after
```language
. Which means if you only change params of a code block, obsidian will think nothing has been changed, so it won't call any post processor in preview view render process.
Manually installing the plugin
- Copy over
main.js
,styles.css
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/obsidian-advanced-codeblock/
.
Releases
1.1.0
- Funcitonalities are available in live-preview mode!