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.

  • Category: Editor Experience
  • Status: available
  • Version: 0.2.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-08
  • Compatibility: EmDash ^1.4.0
  • Maintainer: jimiryquai

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