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

Use highlight option to enable highlighting #115

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

dyllan-to-you
Copy link
Contributor

Ref: #114

Previously modified code function of renderer which made the use of custom renderers kinda buggy.

Now actually utilizes the highlight option.

If a user wishes to customize the code renderer while still utilizing highlighting, see the marked implementation for reference

Previously modified `code` function of renderer which made the use of custom renderers kinda buggy. 

Now actually utilizes the `highlight` option.
We were importing `highlight.js` as well as doing `const hljs = require('highlight.js');`. 
This removes the dependency on the latter.
@simonhaenisch simonhaenisch merged commit acee2f8 into simonhaenisch:master Jan 28, 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.

2 participants