Browse Source

public: update highlights.js to 9.16.2 (#5856)

* updated the highlight.js plugin

* added some explicit mappings for syntax highlighting
johannes69ki 5 years ago
parent
commit
7d9f408d3a

+ 4 - 0
internal/template/highlight/highlight.go

@@ -59,6 +59,10 @@ var (
 		".swift":  true,
 		".ts":     true,
 		".vb":     true,
+		".r":      true,
+		".sas":    true,
+		".tex":    true,
+		".yaml":   true,
 	}
 
 	// Extensions that are not same as highlight classes.

+ 2 - 2
public/assets/librejs/librejs.html

@@ -46,9 +46,9 @@
         <td><a href="/plugins/dropzone-4.2.0/dropzone.js">dropzone.js</a></td>
       </tr>
       <tr>
-        <td><a href="/plugins/highlight-9.6.0/highlight.pack.js">highlight.pack.js</a></td>
+        <td><a href="/plugins/highlight-9.16.2/highlight.pack.js">highlight.pack.js</a></td>
         <td><a href="https://github.com/isagalaev/highlight.js/blob/master/LICENSE">BSD 3 Clause</a></td>
-        <td><a href="https://github.com/isagalaev/highlight.js/archive/9.6.0.tar.gz">highlight.js-9.6.0.tar.gz</a></td>
+        <td><a href="https://github.com/isagalaev/highlight.js/archive/9.16.2.tar.gz">highlight.js-9.16.2.tar.gz</a></td>
       </tr>
       <tr>
         <td><a href="/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js">jquery.datetimepicker.js</a></td>

+ 0 - 0
public/plugins/highlight-9.6.0/default.css → public/plugins/highlight-9.16.2/default.css


+ 0 - 0
public/plugins/highlight-9.6.0/github.css → public/plugins/highlight-9.16.2/github.css


File diff suppressed because it is too large
+ 1 - 0
public/plugins/highlight-9.16.2/highlight.pack.js


File diff suppressed because it is too large
+ 0 - 1
public/plugins/highlight-9.6.0/highlight.pack.js


+ 2 - 2
templates/base/footer.tmpl

@@ -34,8 +34,8 @@
 
 <!-- Third-party libraries -->
 {{if .RequireHighlightJS}}
-	<link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.6.0/github.css">
-	<script src="{{AppSubURL}}/plugins/highlight-9.6.0/highlight.pack.js"></script>
+	<link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.16.2/github.css">
+	<script src="{{AppSubURL}}/plugins/highlight-9.16.2/highlight.pack.js"></script>
 {{end}}
 {{if .RequireMinicolors}}
 	<link rel="stylesheet" href="{{AppSubURL}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">

Some files were not shown because too many files changed in this diff