mirror of https://github.com/gogs/gogs.git
public: update highlights.js to 9.16.2 (#5856)
* updated the highlight.js plugin * added some explicit mappings for syntax highlightingpull/5857/head
parent
260c4e8503
commit
7d9f408d3a
|
@ -59,6 +59,10 @@ var (
|
||||||
".swift": true,
|
".swift": true,
|
||||||
".ts": true,
|
".ts": true,
|
||||||
".vb": true,
|
".vb": true,
|
||||||
|
".r": true,
|
||||||
|
".sas": true,
|
||||||
|
".tex": true,
|
||||||
|
".yaml": true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extensions that are not same as highlight classes.
|
// Extensions that are not same as highlight classes.
|
||||||
|
|
|
@ -46,9 +46,9 @@
|
||||||
<td><a href="/plugins/dropzone-4.2.0/dropzone.js">dropzone.js</a></td>
|
<td><a href="/plugins/dropzone-4.2.0/dropzone.js">dropzone.js</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<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/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>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js">jquery.datetimepicker.js</a></td>
|
<td><a href="/plugins/jquery.datetimepicker-2.4.5/jquery.datetimepicker.js">jquery.datetimepicker.js</a></td>
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
<!-- Third-party libraries -->
|
<!-- Third-party libraries -->
|
||||||
{{if .RequireHighlightJS}}
|
{{if .RequireHighlightJS}}
|
||||||
<link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.6.0/github.css">
|
<link rel="stylesheet" href="{{AppSubURL}}/plugins/highlight-9.16.2/github.css">
|
||||||
<script src="{{AppSubURL}}/plugins/highlight-9.6.0/highlight.pack.js"></script>
|
<script src="{{AppSubURL}}/plugins/highlight-9.16.2/highlight.pack.js"></script>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .RequireMinicolors}}
|
{{if .RequireMinicolors}}
|
||||||
<link rel="stylesheet" href="{{AppSubURL}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
|
<link rel="stylesheet" href="{{AppSubURL}}/plugins/jquery.minicolors-2.2.3/jquery.minicolors.css">
|
||||||
|
|
Loading…
Reference in New Issue