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

Some code blocks are always detected as JSX #135

Open
alecmev opened this issue Dec 13, 2024 · 1 comment
Open

Some code blocks are always detected as JSX #135

alecmev opened this issue Dec 13, 2024 · 1 comment

Comments

@alecmev
Copy link
Contributor

alecmev commented Dec 13, 2024

By the way an user reported that some code blocks languages were always detected as jsx, it would be cool to list all available languages in the docs and default to no language by default

I assume now the language is detected from the class of the code tag

Originally posted by @remorses in #132 (comment)

@alecmev
Copy link
Contributor Author

alecmev commented Dec 13, 2024

Yep, the language is extracted from the class (via some heuristics), but the fallback should be Markdown (essentially plain text). Can you share a sample HTML value of the code block that's being detected as JSX?

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

No branches or pull requests

1 participant