Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.76 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.76 KB

Obsidian Code Block Enhancer

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!

Feature

Enhancer the markdown code block in preview mode.

  • Provide line number
  • Show language name
  • Code snap
  • Custom exclusion language
  • Enhance contextmenu in code block
  • ......

Screenshot

Preview Mode

PreviewMode

Default Dark theme

Obsidian_Default_Dark_Theme

Default Light theme

Obsidian_Default_Light_Theme

Plugin setting

plugin_settings

How to use

Install

BRAT

  • 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.

Source Code

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run build to build file in ./dist.
  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/.
  • Enable plugin in Obsidian setting.

Releases

  • Download main.js, styles.css, manifest.json in the latest release
  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-code-block-enhancer/.
  • Enable plugin in Obsidian setting.