Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: backticks not getting rendered in docs (#2566)
Browse files Browse the repository at this point in the history
* issue #2562 fix

this fix is for issue #2562 where I have set transformInLineCode to true

* Update globals.css

* Update next.config.mjs

Co-authored-by: Tom Schmelzer <[email protected]>
  • Loading branch information
AldrinSeanPereira and schmelto authored Jan 23, 2023
1 parent 166f42d commit 7cca1ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const nextConfig = {
const withMDX = createMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm, remarkPrism],
remarkPlugins: [remarkGfm, [remarkPrism, {transformInlineCode: true}]],
rehypePlugins: [],
},
});
Expand Down
4 changes: 4 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ a {
box-sizing: border-box;
}

code.language-unknown::before, code.language-unknown::after {
content: ""
}

@tailwind base;
@tailwind components;
@tailwind utilities;

0 comments on commit 7cca1ac

Please sign in to comment.