lib/resources/backends/haml/deckjs/document.html.haml in hyla-1.0.6 vs lib/resources/backends/haml/deckjs/document.html.haml in hyla-1.0.7.pre.1
- old
+ new
@@ -23,11 +23,11 @@
- if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss)
%link(rel='stylesheet'){:href=>normalize_web_path('asciidoctor-pygments.css', (attr :stylesdir, ''))}
- else
%style=Asciidoctor::HTML5.pygments_stylesheet(attr 'pygments-style')
- when 'highlightjs'
- %link(rel='stylesheet' href="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
- %script(src="#{attr :highlightjsdir, 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/7.3'}/highlight.min.js")
+ %link(rel='stylesheet' href="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/styles/#{attr 'highlightjs-theme', 'default'}.min.css")
+ %script(src="#{attr :highlightjsdir, 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4'}/highlight.min.js")
%script hljs.initHighlightingOnLoad()
- when 'prettify'
%link(rel='stylesheet' href="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/#{attr 'prettify-theme', 'prettify'}.min.css")
%script(src="#{attr :prettifydir, 'http://cdnjs.cloudflare.com/ajax/libs/prettify/r298'}/prettify.min.js")
%script document.addEventListener('DOMContentLoaded', prettyPrint)