Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ijsto/playground-istyled-nextjs


https://github.com/ijsto/playground-istyled-nextjs

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

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](https://github.com/ScottAgirs/playground-istyled-nextjs)

```

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

```

2. Enter the directory

```

cd prism-slate

```

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

`yarn install`

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

`yarn dev`

5. 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](https://ijs.to)