question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for rehype plugins

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, May 29, 2020

Thank you for your comments and feedback @juliomrqz ☺️

Beautiful website BTW!

1reaction
benjamincanaccommented, May 29, 2020

@juliomrqz Thanks for your explanation.

Will work on it soon then!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found