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

Add support for extra highlight.js languages #88

Merged
merged 2 commits into from Jun 18, 2017

Conversation

bkbooth
Copy link
Contributor

@bkbooth bkbooth commented Jun 18, 2017

This adds support for extra highlight.js languages by assigning an array to either config.toml or a page/post's front matter:

config.toml

# ...
[params]
  # ...
  hjsStyle = "default"
  hjsExtraLanguages = ["elm"]

content/post/my-blog-post-about-elm.md

+++
title = "My Blog Post About Elm"
# ...
hjsExtraLanguages = ["elm"]
+++

...

I've also upgraded highlight.js from v9.6.0 to v9.8.0

@vjeantet vjeantet merged commit 6f1aa2e into vjeantet:master Jun 18, 2017
@vjeantet
Copy link
Owner

Thanks !

@bkbooth bkbooth deleted the feature/hjs-extra-languages branch June 18, 2017 22:31
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

2 participants