Skip to content

Commit

Permalink
support highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 18, 2019
1 parent da0192c commit 17bf042
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="//mathjax.rstudio.com/latest/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 17bf042

Please sign in to comment.