Skip to content

Commit

Permalink
fix: rehype line number plugin error
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Oct 13, 2022
1 parent 7169e50 commit d1056ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/.island/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default defineConfig({
},
markdown: {
rehypePlugins: [],
remarkPlugins: []
remarkPlugins: [],
lineNumbers: true
},
route: {
exclude: ['custom.tsx', '**/fragments/**']
Expand Down
2 changes: 1 addition & 1 deletion src/node/plugin-mdx/pluginMdxRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function pluginMdxRollup(
}
],
rehypePluginPreWrapper,
...(config.markdown?.lineNumbers ? rehypePluginLineNumbers : []),
...(config.markdown?.lineNumbers ? [rehypePluginLineNumbers] : []),
...(config.markdown?.rehypePlugins || [])
]
}) as Plugin;
Expand Down
1 change: 0 additions & 1 deletion src/theme-default/styles/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@
bottom: 0;
left: 0;
z-index: 3;
border-right: 1px solid var(--island-c-divider-dark-2);
padding-top: 16px;
width: 36px;
text-align: center;
Expand Down

1 comment on commit d1056ca

@vercel
Copy link

@vercel vercel bot commented on d1056ca Oct 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.