No description
Find a file
2022-01-27 16:48:30 -07:00
.editorconfig Initial commit 2022-01-27 15:58:41 -07:00
.eslintignore Initial commit 2022-01-27 15:58:41 -07:00
.eslintrc Initial commit 2022-01-27 15:58:41 -07:00
.gitignore Initial commit 2022-01-27 15:58:41 -07:00
.npmrc Initial commit 2022-01-27 15:58:41 -07:00
esbuild.config.mjs Initial commit 2022-01-27 15:58:41 -07:00
main.ts Removed force reload 2022-01-27 16:48:30 -07:00
manifest.json Initial Version 2022-01-27 16:48:28 -07:00
package-lock.json Initial Version 2022-01-27 16:48:28 -07:00
package.json Initial commit 2022-01-27 15:58:41 -07:00
README.md Initial Version 2022-01-27 16:48:28 -07:00
styles.css Initial Version 2022-01-27 16:48:28 -07:00
tsconfig.json Initial commit 2022-01-27 15:58:41 -07:00
version-bump.mjs Initial commit 2022-01-27 15:58:41 -07:00
versions.json Initial commit 2022-01-27 15:58:41 -07:00

Obsidian Code Block Labels Plugin

This plugin renders labels for code blocks.

Source preview [image of source] [image of preview]

The plugin can also be optionally configured to show the language as a label, if no explicit label was set

fn main() {
  println!("Hello, world");
}

Labels are assigned the "codeblock-label" class, and so can be styled with CSS:

.codeblock-label {
  color: magenta;
  background: green;
}