Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
some notable changes

- had to use `pre` for code blocks: hashicorp/next-mdx-remote#244
- had to force react version for mdxjs: PaulieScanlon/mdx-embed#237
- had to update mousetrail package to match react
  • Loading branch information
dlcoffee committed Feb 24, 2023
1 parent f7a3bb8 commit f75875a
Show file tree
Hide file tree
Showing 5 changed files with 6,575 additions and 3,331 deletions.
4 changes: 3 additions & 1 deletion components/BlogLayout.js
Expand Up @@ -10,10 +10,12 @@ const BlogLayout = ({ children, frontMatter }) => {
timeZone: 'UTC',
})

const pageTitle = `Daniel Tea | ${title}`

return (
<Layout>
<Head>
<title>Daniel Tea | {title}</title>
<title>{pageTitle}</title>
<link rel="icon" href="/favicon.ico" />
</Head>

Expand Down
12 changes: 10 additions & 2 deletions components/CodeBlock.js
Expand Up @@ -14,11 +14,19 @@ const LineNo = ({ children }) => {
)
}

const CodeBlock = ({ children, className, linenos }) => {
const CodeBlock = ({ children }) => {
if (!children || children.type !== 'code') {
return null
}

const {
props: { className, children: code = '', linenos },
} = children

const language = className.replace(/language-/, '')

return (
<Highlight {...defaultProps} code={children.trim()} language={language}>
<Highlight {...defaultProps} code={code.trim()} language={language}>
{({ className, style, tokens, getLineProps, getTokenProps }) => {
return (
<pre
Expand Down

0 comments on commit f75875a

Please sign in to comment.