Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prisma Support #3462

Open
nexxeln opened this issue May 27, 2022 · 1 comment
Open

Add Prisma Support #3462

nexxeln opened this issue May 27, 2022 · 1 comment

Comments

@nexxeln
Copy link

nexxeln commented May 27, 2022

Language
Prisma is a Next-generation Node.js and TypeScript ORM. It's basically the standard way to communicate to a database using TypeScript now. In Prisma, you have a schema.prisma file to write your database schema, but there is no syntax highlighting for .prisma in prism.

Additional resources

@pkerschbaum
Copy link

In case it helps anyone:

The official Prisma docs actually use Prism.js for their code blocks, seems like they have their language definition here: github.com/prisma/docs/blob/c72eb087fcf57f3c00d153f86c549ef28b3d0f44/src/components/customMdx/prism/prism-prisma.js.
I was able to reuse that language definition for rehype-prism-plus, see github.com/pkerschbaum/pkerschbaum-homepage/blob/5472b5af94159e58bd99c84d198227b56d8dad84/packages/libs/mdx/src/prism/lang-prisma.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants