-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
173 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import fs from 'fs' | ||
import { LiveDemo } from './live-demo' | ||
import dynamic from 'next/dynamic' | ||
|
||
// eslint-disable-next-line react-refresh/only-export-components | ||
export const metadata = { | ||
title: 'Live demo | MDXEditor', | ||
description: 'Live demo of MDXEditor, an open-source React component for markdown editing', | ||
} | ||
|
||
const LiveDemoEditor = dynamic(() => import('@/app/DemoEditor'), { ssr: false }) | ||
|
||
export default function Page() { | ||
const demoMarkdown = fs.readFileSync('./docs/live-demo-contents.md', 'utf-8') | ||
return <LiveDemo markdown={demoMarkdown} /> | ||
return <LiveDemoEditor markdown={demoMarkdown} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.