Support for rehype plugins
See original GitHub issueIs your feature request related to a problem? Please describe.
From version 1.2.0 it is possible to define only remark plugins. But have you considered supporting the definition of rehype plugins?
Describe the solution you’d like
For example, MDX allows you to easily define plugins for remark and rehype, which are considered within the conversion flow as you can see here https://mdxjs.com/advanced/plugins. It would be useful to be able to define rehype plugins in a similar way.
Maybe something like this could be supported
export default {
content: {
// ...
markdown: {
rehypePlugins: [
// ..
'rehype-accessible-emojis',
'rehype-katex',
'rehype-picture',
// ...
]
},
// ...
}
}
But perhaps this current option markdown.plugins
must be renamed to markdown.remarkPlugins
to reduce the misunderstanding of both types of plugins
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top Results From Across the Web
rehype/plugins.md at main - GitHub
rehype is a tool that transforms HTML with plugins. See the monorepo readme for info on what the rehype ecosystem is. This page...
Read more >rehype-plugin - Topics - unified
Explore projects in the unified ecosystem with the “rehype-plugin” topic. ... remark and rehype plugins to support math.
Read more >remark and rehype plugins - MDX
We first use remark-mdx to add MDX syntax support and then use a rehype plugin to transpile it to JSX. The final result...
Read more >MDX Plugins - Docusaurus
You should check your plugin's documentation for the options it supports. Creating new rehype/remark plugins. If there isn't an existing ...
Read more >rehype-meta - npm
rehype plugin to add metadata to the head of a document. ... with abstract syntax trees (ASTs). rehype adds support for HTML to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your comments and feedback @juliomrqz ☺️
Beautiful website BTW!
@juliomrqz Thanks for your explanation.
Will work on it soon then!