myl7 / remark-github-beta-blockquote-admonitions

remark plugin to add support for GitHub beta blockquote-based admonitions
https://www.npmjs.com/package/remark-github-beta-blockquote-admonitions
Apache License 2.0
23 stars 2 forks source link

How to use with MDXRemote ? #9

Closed akarabach closed 11 months ago

akarabach commented 11 months ago

Is there any way to use with MDXRemote ?

import plugin from 'remark-github-beta-blockquote-admonitions';

 <MDXRemote
  source={post.fullStory ?? ''}
  options={{
    mdxOptions: {
      remarkPlugins: [remarkGfm, plugin],
      rehypePlugins: [],
    },
  }}
/>
myl7 commented 11 months ago

v2 should work fine with MDXRemote of next-mdx-remote

See https://github.com/myl7/remark-github-beta-blockquote-admonitions#compatibility

akarabach commented 11 months ago

do you have an example how this should be configured ? I'm using v2, but the config above is not working

myl7 commented 11 months ago

See https://github.com/myl7/remark-github-beta-blockquote-admonitions-next-mdx-remote-example

It is based on the app router. For the page router the code should be similar, just requires normal migration between the two routers. Tell me if you also need an example for that.

akarabach commented 11 months ago

thanks for example, I will close this one