-
-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: handle rehype plugins with recursive merging BREAKING CHANGE: plugins disappear in favor of remarkPlugins and rehypePlugins. basePlugins also disappear in favor of deep merging and functions override * docs: update for rehype plugins * feat(lib): improve plugins parser * docs: fix code-group component * docs: update for new plugins options * docs: add changelog page * feat(lib): use nuxt resolver for local plugins * docs: update configuration * feat(lib): remove nuxt dependency * docs: minor improvements * chore: add getOptions for programmatic usage * fix(lib): add missing property after merge * chore(lib): improve plugins parsing * test: options merging Co-authored-by: Sébastien Chopin <[email protected]>
- Loading branch information
1 parent
ddd892c
commit f6bb586
Showing
9 changed files
with
423 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Changelog | ||
description: 'Learn the changes made of the different versions of @nuxt/content module.' | ||
position: 8 | ||
category: Getting started | ||
--- | ||
|
||
## v2.0.0 | ||
|
||
### Markdown plugins | ||
|
||
<base-alert> | ||
markdown.basePlugins and markdown.plugins have been removed in favor of markdown.remarkPlugins and markdown.rehypePlugins. | ||
</base-alert> | ||
|
||
- Overriding plugins options can still be done but with prefixing by `remark` or `rehype`, for examps `externalLinks` becomes `remarkExternalLinks`. | ||
- You can now override all plugins or append a new plugin using `remarkPlugins` / `rehypePlugins`. | ||
- You can use local plugins using `~/plugins/remark-plugin.js`. | ||
- You can register and configure plugins on the same line like `['remark-plugin', { option: 1 }]`. | ||
|
||
Everything is documented in [this section](/configuration#markdown). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.