docusaurus/lib/core
Christopher Chedeau e9c5cef664 Add the ability to define a default language (#206)
* 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.

* Move comment around
2017-11-01 12:16:15 -07:00
..
nav Add docusaurus-init to the headerlink message (#202) 2017-10-31 09:20:23 -07:00
BlogPageLayout.js Syntax bug fix from #169 2017-10-26 16:29:14 -07:00
BlogPost.js [BREAKING] Rename Marked to MarkdownBlock (#162) 2017-10-30 15:47:13 -07:00
BlogPostLayout.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
BlogSidebar.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
CompLibrary.js [BREAKING] Rename Marked to MarkdownBlock (#162) 2017-10-30 15:47:13 -07:00
Container.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
Doc.js [BREAKING] Rename Marked to MarkdownBlock (#162) 2017-10-30 15:47:13 -07:00
DocsLayout.js Oops - forgot to remove debugging statement 2017-10-24 19:10:29 -07:00
DocsSidebar.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
GridBlock.js [BREAKING] Rename Marked to MarkdownBlock (#162) 2017-10-30 15:47:13 -07:00
Head.js move main.css below hljs css (#195) 2017-10-30 10:55:39 -07:00
Header.js Bug fixes in generatejs (#169) 2017-10-26 16:13:56 -07:00
MarkdownBlock.js [BREAKING] Rename Marked to MarkdownBlock (#162) 2017-10-30 15:47:13 -07:00
Redirect.js Bug fixes in generatejs (#169) 2017-10-26 16:13:56 -07:00
Remarkable.js Add the ability to define a default language (#206) 2017-11-01 12:16:15 -07:00
Site.js Switch to GFM-style heading anchors (#164) 2017-10-26 16:12:17 -07:00
toSlug.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00
unindent.js The complete move to MIT license (#115) 2017-10-05 11:14:49 -07:00