Codeblock

Shiki syntax highlighting for EmDash code blocks - rendered server-side, with a copy button.

Plugin

Codeblock

Shiki syntax highlighting for EmDash code blocks - rendered server-side, with a copy button.

  • Category: Editor Experience
  • Status: available
  • Version: 0.4.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=0.13.0
  • Maintainer: abhinav061

Shiki syntax highlighting for EmDash code blocks - rendered server-side, with a copy button.

Installation

Install the package from npm:

npm install @plugdash/codeblock

Register the plugin in your Astro config:

// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { codeblockPlugin } from "@plugdash/codeblock";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [codeblockPlugin({ theme: "github-dark", lineNumbers: true })], // native - must be in plugins, not sandboxed
    }),
  ],
});

Details