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

Fix syntax highlighting in code blocks #360

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Nov 13, 2023

Which issue, if any, is this issue related to?

Ref #357

Is there anything in the PR that needs further explanation?

I upgraded Docusaurus to v3 in #357, but I missed a breaking change for syntax highlighting.
This change adds the prism.additionalLanguages to the Docusaurus config.

See also:

Path Before (stylelint.io) After (this PR preview)
/user-guide/customize image image
/configure image image

I upgraded Docusaurus to v3 in #357, but I missed a breaking change for syntax highlighting.
This change adds the `prism.additionalLanguages` to the Docusaurus config.

See also:
- https://docusaurus.io/docs/migration/v3#prism-react-renderer-v20
- https://prismjs.com/#supported-languages
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

LGTM.

@ybiquitous ybiquitous merged commit 387e686 into main Nov 14, 2023
7 checks passed
@ybiquitous ybiquitous deleted the fix-syntax-highlight branch November 14, 2023 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants