Skip to content

Commit

Permalink
do not index code blocks!
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 18, 2024
1 parent b1f7b0e commit 30b07f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/server/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ const rehypeCheckFrontMatter: Plugin<[], any> = () => (ast, file) => {
export const defaultNextraOptions: NextraConfig = {
defaultShowCopyCode: true,
whiteListTagsStyling: ['iframe', 'video', 'source'],
search: {
codeblocks: false,
},
mdxOptions: {
// Check front matter only in production (when Webpack is used)
// Should be rehype since frontMatter is attached in remark plugins
Expand Down

0 comments on commit 30b07f0

Please sign in to comment.