Add Your First Plugin
Plugins add features to your Riebeckite site — search, diagrams, embeds, and more. This guide walks through adding the highlight plugin, which lets you mark text with ==double equals== syntax.
Want to change how the site looks instead? See Change Your Theme.
1. Install
In your generated site directory:
npm install @riebeckite/plugin-highlight
2. Import
Open riebeckite.config.ts and add the import at the top:
import { highlight } from "@riebeckite/plugin-highlight";
3. Add the Plugin
Find the plugins array in your config and add highlight():
plugins: [
// ... existing plugins
highlight(),
],
4. Try It
Restart the dev server (or start it if not running):
npm exec riebeckite dev
Open your site and edit a Markdown file (e.g., content/index.md). Add some highlighted text:
This sentence has a ==highlighted phrase== inside it.
Save and check the page — the text between == is now highlighted.
5. Next Steps
- Explore more plugins in the Plugins reference
- Try
@riebeckite/plugin-mermaidfor diagrams - Try
@riebeckite/plugin-graphvizfor graph visualizations - Learn to write your own plugin