Highlight.js Syntax Highlighting
Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.
Plugin
Highlight.js Syntax Highlighting
Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.
Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.
Installation
Install the package from npm:
npm install emdash-plugin-highlightjs
Register the plugin in your Astro config:
import { highlightjsPlugin } from "emdash-plugin-highlightjs";
export default defineConfig({
integrations: [
emdash({
plugins: [highlightjsPlugin()],
}),
],
});
Details
- Latest version: 1.0.2
- License: MIT
- Publisher: Adriano Amalfi
- Requires: EmDash
^0.12.0 - Source repository: https://github.com/adrianoamalfi/emdash-plugin-highlightjs
- npm package: emdash-plugin-highlightjs