prisma / docs

📚 Prisma Documentation
https://www.prisma.io/docs
Apache License 2.0
981 stars 777 forks source link

Code highlighting with `highlight` causes issues in code lines with hyphens #5214

Closed nilubava closed 1 month ago

nilubava commented 1 year ago

In the page: https://docs-git-jharrell-issue5087-prisma.vercel.app/guides/deployment/serverless/deploy-to-aws-lambda#3-update-serverlessyml
In the Update serverless.yml section, 2nd code block there's a line that starts with find . that should actually start with - find . here's the relevant code snippet https://docs-git-jharrell-issue5087-prisma.vercel.app/guides/deployment/serverless/deploy-to-aws-lambda#3-update-serverlessyml and here's a comment with an image https://github.com/prisma/docs/pull/5096/files#r1294680103

Yml files has highlighting issues when - is used in that it highlights the line incorrectly. We can get rid of this by using -- for now, but we need to fix the code block component to make sure -- are not required

https://www.prisma.io/docs/orm/prisma-client/deployment/serverless/deploy-to-aws-lambda#3-update-serverlessyml

nilubava commented 1 year ago

In the page: https://docs-git-jharrell-issue5087-prisma.vercel.app/guides/deployment/serverless/deploy-to-aws-lambda#3-update-serverlessyml In the Update serverless.yml section, 2nd code block there's a line that starts with find . that should actually start with - find . here's the relevant code snippet https://docs-git-jharrell-issue5087-prisma.vercel.app/guides/deployment/serverless/deploy-to-aws-lambda#3-update-serverlessyml and here's a comment with an image https://github.com/prisma/docs/pull/5096/files#r1294680103

Yml files has highlighting issues when - is used in that it highlights the line incorrectly. We can get rid of this by using -- for now, but we need to fix the code block component to make sure -- are not required