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.

Version License Downloads

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
vuepress-plugin-glossary

Glossary and term linking plugin for Vuepress

1,812
vitepress-md-var

Adds editable variables to markdown code blocks

1,601 1
@bindr/bindr

(WIP) Convention-based Markdown documentation generator.

366 0

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