Skip to content

Instantly share code, notes, and snippets.

View fariasmateuss's full-sized avatar
🏠
Working from home

Mateus V. Farias fariasmateuss

🏠
Working from home
View GitHub Profile
@jaredpalmer
jaredpalmer / MarkdownPage.tsx
Created February 17, 2021 13:52
Get headers from MDX in Next.js
import {MDXProvider} from '@mdx-js/react';
import {MDXComponents} from 'components/MDX/MDXComponents';
import {Toc} from 'components/Toc/Toc';
import * as React from 'react';
export interface MarkdownProps<Frontmatter> {
meta: Frontmatter;
children?: React.ReactNode;
}