Syntax Highlighter
Coloration syntaxique Portable Text pour EmDash CMS, avec rendu SSR, numéros de ligne, lignes surlignées et copie dans le presse-papiers.
Extension
Syntax Highlighter
Coloration syntaxique Portable Text pour EmDash CMS, avec rendu SSR, numéros de ligne, lignes surlignées et copie dans le presse-papiers.
Coloration syntaxique Portable Text pour EmDash CMS, avec rendu SSR, numéros de ligne, lignes surlignées et copie dans le presse-papiers.
Installation
Installez le paquet depuis npm :
npm install @masonjames/emdash-syntax-highlighter
Enregistrez le plugin dans votre configuration Astro :
// 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()],
}),
],
});
Détails
- Dernière version: 0.1.1
- Licence: MIT
- Éditeur: Mason James
- Prérequis: EmDash
>=0.1.0 - Dépôt source: https://github.com/masonjames/emdash-syntax-highlighter
- Paquet npm: @masonjames/emdash-syntax-highlighter