vitepress-plugin-glossary
A VitePress plugin that automatically identifies and links glossary terms with interactive tooltips
11,666
| Install | |
|---|---|
npm install vitepress-plugin-glossary |
|
| Latest Version: | 1.0.6 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jun 19, 2025 |
| Links: | npm |
Maintainer: reachkamrul
VitePress Plugin Glossary
A VitePress plugin that automatically identifies and links glossary terms with interactive tooltips.
Features
- π Automatically detects and links glossary terms in your markdown content
- π― Option to link only the first occurrence of each term per page
- π¨ Beautiful, customizable tooltips using Vue components
- π« Ability to skip terms using //double slashes//
- π¦ Support for both file-based and direct object glossaries
- π§ TypeScript support
- π Zero configuration required
Quick Start
npm install vitepress-plugin-glossary
// .vitepress/config.mts
import { defineConfig } from 'vitepress';
import { markdownGlossaryPlugin } from 'vitepress-plugin-glossary';
import glossary from './glossary.json';
export default defineConfig({
markdown: {
config: (md) => {
md.use(markdownGlossaryPlugin, {
glossary: glossary,
firstOccurrenceOnly: true
});
}
}
});
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme';
import GlossaryTooltip from 'vitepress-plugin-glossary/vue';
export default {
...DefaultTheme,
enhanceApp({ app }) {
app.component('GlossaryTooltip', GlossaryTooltip);
}
};
Documentation
For detailed setup instructions and configuration options, see:
Example
// glossary.json
{
"VitePress": "A Static Site Generator powered by Vite and Vue",
"Vue": "A Progressive JavaScript Framework"
}
// Your markdown content
VitePress is built with Vue.
To prevent linking: //VitePress//
Requirements
- Node.js 16 or higher
- VitePress 1.0.0 or higher
- Vue 3.3.0 or higher
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see the LICENSE file for details
Related Packages
@composy/longpress
LDesign ζζ‘£η³»η» - ζ―ζ Vue/React η»δ»ΆζΈ²ζγδΈ»ι’η³»η»γζδ»Άη³»η»ηη°δ»£εζζ‘£ζ‘ζΆ
504
Version History
| Version | Released | License |
|---|---|---|
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |