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 the ability to define a default language #206

Merged
merged 2 commits into from
Nov 1, 2017
Merged

Commits on Nov 1, 2017

  1. Add the ability to define a default language

    I don't want to have to add the language i'm working on to every single block nor do I want to rely on a default heuristic to find the language.
    
    This adds the ability to write
    
    ```
    highlight: { defaultLang: 'xxxx' }
    ```
    
    in `siteConfig.js` to force the language when not specified.
    
    I tested it without a a highlight block, without a defaultLang attribute and with one and with a wrong one. All of them work as expected.
    vjeux authored Nov 1, 2017
    Configuration menu
    Copy the full SHA
    12f9a8a View commit details
    Browse the repository at this point in the history
  2. Move comment around

    vjeux authored Nov 1, 2017
    Configuration menu
    Copy the full SHA
    2892b63 View commit details
    Browse the repository at this point in the history