Skip to content

10.2.0: Simpler syntax highlighting

Choose a tag to compare

@bensmithett bensmithett released this 06 Apr 23:21
· 34 commits to main since this release
ec6d840

Changes

See #45

Upgrade instructions (more info)

Merge upstream changes

First, configure this repo as a remote for your repo (you only need to do this once)

  git remote add template https://github.com/bensmithett/tropical.git

Then fetch & merge the latest changes, resolving any conflicts manually:

git fetch template
git merge template/master

or...

Manually update your code

Merging upstream changes should be easy for this change (unless you've made lots of changes to TropicalCodeBlock) but see https://github.com/bensmithett/tropical/pull/45/files for changes you can make manually:

  • yarn remove prism-react-renderer && yarn add react-syntax-highlighter
  • Update TropicalCodeBlock and entry-server.jsx as per #45
  • Add "framework": "@storybook/react" to your .storybook/main.cjs
  • Add providerImportSource: '@mdx-js/react' to both vite config files