Syntax Highlighter
Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.
Plugin
Syntax Highlighter
Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.
Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.
Installation
Install the package from npm:
npm install @masonjames/emdash-syntax-highlighter
Register the plugin in your Astro config:
// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { syntaxHighlighterPlugin } from "@masonjames/emdash-syntax-highlighter";
export default defineConfig({
integrations: [
emdash({
plugins: [syntaxHighlighterPlugin()],
}),
],
});
Details
- Latest version: 0.1.1
- License: MIT
- Publisher: Mason James
- Requires: EmDash
>=0.1.0 - Source repository: https://github.com/masonjames/emdash-syntax-highlighter
- npm package: @masonjames/emdash-syntax-highlighter