-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rehype plugins #65
Conversation
BREAKING CHANGE: plugins disappear in favor of remarkPlugins and rehypePlugins. basePlugins also disappear in favor of deep merging and functions override
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
==========================================
+ Coverage 93.61% 94.34% +0.73%
==========================================
Files 13 14 +1
Lines 423 460 +37
Branches 81 91 +10
==========================================
+ Hits 396 434 +38
+ Misses 24 23 -1
Partials 3 3
Continue to review full report at Codecov.
|
@benjamincanac, is it possible to use local plugins in a similar way that Nuxt.js modules? For example: /// nuxt.config.js
export default {
content: {
markdown: {
remarkPlugins: [
"~/plugins/remark-plugin.js",
],
rehypePlugins: [
["~/plugins/rehype-plugin.js", { option: 2 }],
],
},
},
}; |
@juliomrqz Indeed it will be! You can already try this PR. |
@benjamincanac Perfect, I’ll check it out. Thanks 😎 |
Co-authored-by: Renovate Bot <[email protected]>
* fix(query): support multi arguments slug * chore: disable eslint `no-redeclare`
~/plugins/remark-plugin.js
['~/plugins/rehype-plugin.js', { option: 2 }]