Fix broken build

pull/1657/head
Kamran Ahmed 3 years ago
parent e6da495327
commit c9e0ba9f98
  1. 2
      components/md-renderer/mdx-components/heading.tsx

@ -5,7 +5,7 @@ import LinkIcon from 'components/icons/link.svg';
const linkify = (Component: React.FunctionComponent<any>) => {
return function EnrichedHeading(props: { children: string }): React.ReactNode {
const text = props.children;
const id = text.toLowerCase && text
const id = text?.toLowerCase && text
.toLowerCase()
.replace(/[^\x00-\x7F]/g, '')
.replace(/\s+/g, '-')

Loading…
Cancel
Save