-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Not working with Next.js #57
Comments
@khanakia The error message indicates that the standard Markdown comment syntax |
Ok so mdx has no error now but the plugin does not seem to be working page.mdx
output:
next.config.ts import nextMDX from '@next/mdx'
import rehypeAttrs from 'rehype-attr'
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
}
export default async function config() {
let withMDX = nextMDX({
extension: /\.mdx$/,
options: {
remarkPlugins: [],
rehypePlugins: [
rehypeAttrs,
},
})
return withMDX(nextConfig)
} |
@khanakia This plugin does not support rehype-attr/test/index.test.ts Lines 457 to 477 in 2d37add
Lines 49 to 58 in 2d37add
|
Upgraded to 4.0.1 still not working [github](https://github.com){/* rehype:rel=external rehype:style=width:100px; */} it just outputs PS: I tried customizing the comment settings too [
rehypeAttrs,
{
properties: 'attr',
commentStart: '\\{\\/\\*',
commentEnd: '\\*\\/\\}',
},
], |
rehype-attr/test/index.test.ts Lines 474 to 494 in 6d44dde
@khanakia Based on the test case, it has met the expectations. You may need to change the direction of your research and see how Next.js handles it. |
The text was updated successfully, but these errors were encountered: