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.
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
- Latest version: 0.4.0
- License: MIT
- Publisher: abhinav061
- Requires: EmDash
>=0.13.0 - Source repository: https://github.com/plugdash/plugdash
- npm package: @plugdash/codeblock