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 regex for passing language to highlight.js #960

Merged
merged 1 commit into from
May 14, 2022

Conversation

Seelengrab
Copy link
Contributor

@Seelengrab Seelengrab commented May 14, 2022

Fixes #959 by no longer assuming only one class was for generated code blocks. This fixes prerender=true with extensive prerendering as well.

Let me know if/where I should add tests.

@tlienart
Copy link
Owner

this looks good to me, I also learned about the <...> syntax in regex which I didn't know about 😄 thanks for this!

@tlienart tlienart merged commit 05b1e14 into tlienart:master May 14, 2022
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.

Error: Unknown language: "plaintext code-output"
2 participants