I developed this remark/MDX plugin to automatically replace certain words in .mdx/.md content with other text, icons, or even React components (e.g., Tooltip). It's ideal for keeping terminology consistent, adding contextual help, or "styling" recurring keywords.
The plugin walks Markdown/MDX text nodes, skips certain parents (links, headings, code…), merges all + the current section (blog/pages/docs), sorts keys by decreasing length, then replaces with plain text or MDX components. Matching is Unicode‑safe to avoid false positives inside words.
Combined with a Tooltip component, this plugin lets you build a real interactive glossary: authors write plain Markdown, and the plugin replaces terms with rich components (tooltips, icons, buttons) without extra effort.