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

[ENG-4255] Code blocks lead to redefined const in web page #4598

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Jan 7, 2025

Instead of potentially defining _LANGUAGE constant twice in a component, simply pass the language prop directly to the hook generator function.

If no language is passed, then it defaults to _LANGUAGE, which continues to work for markdown component_map use case.

Fix #4575

Instead of potentially defining `_LANGUAGE` constant twice in a component,
simply pass the language prop directly to the hook generator function.

If no language is passed, then it defaults to `_LANGUAGE`, which continues to
work for markdown component_map use case.
Copy link

linear bot commented Jan 7, 2025

@adhami3310 adhami3310 merged commit 93245ef into main Jan 7, 2025
41 checks passed
@adhami3310 adhami3310 deleted the masenf/code-block-language branch January 7, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code blocks lead to redefined const in web page
3 participants