You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a plugin for vitepress, which needs to inject a plugin to md parser and attach a listener to router.onAfterRouteChanged.
While accessing md parser is straightforward, is there a way to access the router purely via vitepress config, w/o requiring user to create theme/index.js and write enhanceApp boilerplate just to enable the plugin (in addition to injecting it in vitepress config)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a plugin for vitepress, which needs to inject a plugin to md parser and attach a listener to
router.onAfterRouteChanged
.While accessing md parser is straightforward, is there a way to access the router purely via vitepress config, w/o requiring user to create
theme/index.js
and write enhanceApp boilerplate just to enable the plugin (in addition to injecting it in vitepress config)?Beta Was this translation helpful? Give feedback.
All reactions