Highlight.js Syntax Highlighting
Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.
Extension
Highlight.js Syntax Highlighting
Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.
Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.
Installation
Installez le paquet depuis npm :
npm install emdash-plugin-highlightjs
Enregistrez le plugin dans votre configuration Astro :
import { highlightjsPlugin } from "emdash-plugin-highlightjs";
export default defineConfig({
integrations: [
emdash({
plugins: [highlightjsPlugin()],
}),
],
});
Détails
- Dernière version: 1.0.2
- Licence: MIT
- Éditeur: Adriano Amalfi
- Prérequis: EmDash
^0.12.0 - Dépôt source: https://github.com/adrianoamalfi/emdash-plugin-highlightjs
- Paquet npm: emdash-plugin-highlightjs