Skip to content

Commit a48af34

Browse files
committed
support highlight.js
1 parent 5e3ead4 commit a48af34

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

exampleSite/layouts/partials/foot_custom.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
<script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
1111

1212
<script async src="//yihui.name/js/center-img.js"></script>
13+
14+
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
15+
<script src="//cdn.bootcss.com/highlight.js/9.12.0/languages/r.min.js"></script>
16+
17+
<script>
18+
hljs.configure({languages: []});
19+
hljs.initHighlightingOnLoad();
20+
</script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">

0 commit comments

Comments
 (0)