Code Block Pro
Shiki syntax highlighting for EmDash code blocks: 20+ themes, line numbers, line highlights, filename badge and copy button, rendered on the server without WebAssembly.
Plugin
Code Block Pro
Shiki syntax highlighting for EmDash code blocks: 20+ themes, line numbers, line highlights, filename badge and copy button, rendered on the server without WebAssembly.
Shiki syntax highlighting for EmDash code blocks: 20+ themes, line numbers, line highlights, filename badge and copy button, rendered on the server without WebAssembly.
Installation
Install the package and its peer dependencies from npm:
npm install emdash-plugin-code-block-pro shiki @shikijs/engine-javascript
Register the plugin in your Astro config:
import emdash from "emdash/astro";
import { codeBlockProPlugin } from "emdash-plugin-code-block-pro";
export default defineConfig({
integrations: [
emdash({
plugins: [codeBlockProPlugin({ defaultTheme: "github-dark" })],
}),
],
});
Details
- Latest version: 0.2.0
- License: MIT
- Publisher: jimiryquai
- Requires: EmDash
^1.4.0 - Source repository: https://github.com/jimiryquai/emdash-plugin-code-block-pro
- npm package: emdash-plugin-code-block-pro