mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 03:35:41 +00:00
Fix issue heading issue
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m34s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m34s
This commit is contained in:
parent
1715e0c275
commit
4562ad8059
@ -9,7 +9,8 @@ import {createSlug} from './lib/createSlug'
|
|||||||
// This file is required to use MDX in `app` directory.
|
// This file is required to use MDX in `app` directory.
|
||||||
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
||||||
return {
|
return {
|
||||||
h2: ({children}) => <h2>{children}<a className='ml-1' href={`#${createSlug(children)}`}>#</a></h2>,
|
// @ts-ignore TS18049
|
||||||
|
h2: ({children}) => <h2>{children}<a className='ml-1' href={`#${createSlug(children.toString())}`}>#</a></h2>,
|
||||||
// Allows customizing built-in components, e.g. to add styling.
|
// Allows customizing built-in components, e.g. to add styling.
|
||||||
// h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
|
// h1: ({ children }) => <h1 style={{ fontSize: "100px" }}>{children}</h1>,
|
||||||
...components,
|
...components,
|
||||||
|
Loading…
Reference in New Issue
Block a user