Skip to content

Commit

Permalink
support highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 14, 2017
1 parent 6272e67 commit e731f9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions exampleSite/layouts/partials/foot_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@
<script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>

<script async src="//yihui.name/js/center-img.js"></script>

<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/languages/r.min.js"></script>

<script>
hljs.configure({languages: []});
hljs.initHighlightingOnLoad();
</script>
1 change: 1 addition & 0 deletions exampleSite/layouts/partials/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">

0 comments on commit e731f9b

Please sign in to comment.