Skip to content

ijsto/playground-istyled-nextjs

Repository files navigation

Troubleshooting PrismJS + Next.js

The component is located at /components/dataEntry/TextEditor/index.js

Clone PrismJS + SlateJS reproduction

From prismjs-slatejs branch

  1. Clone this repo

git clone https://github.com/ScottAgirs/playground-istyled-nextjs.git prism-slate

  1. Enter the directory

cd prism-slate

  1. Install project dependencies npm or yarn - both have been tested, so can run either one!

yarn install

  1. Run locally - everything will work as expected, markup preserved, syntax highlighted:

yarn dev

  1. Run locally, but build first - the markup will be broken apart and collapsed into a single string, but won't be re-built.

yarn build

yarn start

iJS.to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published