Prismjs now supports ReScript
I’ve been working to add support for ReScript in Prism, and
this weekend, the PR was merged and released in v1.28.0.
The missing support for ReScript in Prism is one of the most painful points when creating documentation for ReScript libraries. Probably will take a time to work properly in projects that uses react-prism-renderer like Docusaurus, Nextra, etc because we have to wait for a new release of prism-react-renderer that uses email@example.com. If you are using Docusaurus you can add support by following this tutorial in the official docs (check out our workaround for reform here)
Some projects like rescript-relay (@zth) , styled-ppx (@davesnx), reform, and graphql-ppx (@jfrolich) can benefit from this feature since rescript wasn’t officially supported by prism and we were forced to use the limited support for ocaml and reason syntax.
Here is a preview from the ReForm docs with the new ReScript highlighting:
You can see more in the Prismjs examples page.