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: code-block-lowlight child extensions do not highlight code #1917

Conversation

enriquecastl
Copy link
Contributor

This MR fixes a bug in the Code Block Lowlight extension that doesn’t allow extending the extension further. When we extend CodeBlockLowlight, the code in the child extension is not highlighted. We discovered that the root cause of this problem is a hard coded extension named provided to the LowlightPlugin. Passing the extension name fixes this problem.

This PR also contains a failing test.

Use the extension name when initializing the
LowlightPlugin. In this way, several extensions
can make use of the same plugin
@enriquecastl enriquecastl changed the title Allow extending code-block-lowlight Fix: code-block-lowlight child extensions do not highlight code Sep 20, 2021
@philippkuehn philippkuehn merged commit 54be0e5 into ueberdosis:main Sep 21, 2021
@philippkuehn
Copy link
Contributor

great! thanks!

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.

None yet

3 participants