templates/document.html.slim in asciidoctor-revealjs-4.0.1 vs templates/document.html.slim in asciidoctor-revealjs-4.1.0.rc2

- old
+ new

@@ -19,28 +19,31 @@ - linkcss = (attr? 'linkcss') link rel="stylesheet" href="#{revealjsdir}/css/reset.css" link rel="stylesheet" href="#{revealjsdir}/css/reveal.css" / Default theme required even when using custom theme - - if attr? :revealjs_customtheme - link rel='stylesheet' href=(attr :revealjs_customtheme) id='theme' - - else - link rel='stylesheet' href='#{revealjsdir}/css/theme/#{attr 'revealjs_theme', 'black'}.css' id='theme' + link rel='stylesheet' href=(attr :revealjs_customtheme, %(#{revealjsdir}/css/theme/#{attr 'revealjs_theme', 'black'}.css)) id='theme' /! This CSS is generated by the Asciidoctor reveal.js converter to further integrate AsciiDoc's existing semantic with reveal.js style type="text/css" include asciidoctor-compatibility.css - if attr? :icons, 'font' / iconfont-remote is implicitly set by Asciidoctor core. See https://github.com/asciidoctor/asciidoctor.org/issues/361 - if attr? 'iconfont-remote' - link rel='stylesheet' href=(attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/all.min.css)) - link rel='stylesheet' href=(attr 'iconfont-cdn', %(#{cdn_base}/font-awesome/5.12.0-1/css/v4-shims.min.css)) + - if (iconfont_cdn = (attr 'iconfont-cdn')) + link rel='stylesheet' href=iconfont_cdn + - else + / default icon font is Font Awesome + - font_awesome_version = (attr 'font-awesome-version', '5.15.1') + link rel='stylesheet' href=%(#{cdn_base}/font-awesome/#{font_awesome_version}/css/all.min.css) + link rel='stylesheet' href=%(#{cdn_base}/font-awesome/#{font_awesome_version}/css/v4-shims.min.css) - else link rel='stylesheet' href=(normalize_web_path %(#{attr 'iconfont-name', 'font-awesome'}.css), (attr 'stylesdir', ''), false) - if attr? :stem - eqnums_val = (attr 'eqnums', 'none') - eqnums_val = 'AMS' if eqnums_val == '' - eqnums_opt = %( equationNumbers: { autoNumber: "#{eqnums_val}" } ) + - mathjaxdir = (attr 'mathjaxdir', "#{cdn_base}/mathjax/2.7.6") script type='text/x-mathjax-config' | MathJax.Hub.Config({ tex2jax: { inlineMath: [#{Asciidoctor::INLINE_MATH_DELIMITERS[:latexmath].to_s}], displayMath: [#{Asciidoctor::BLOCK_MATH_DELIMITERS[:latexmath].to_s}], @@ -50,11 +53,11 @@ delimiters: [#{Asciidoctor::BLOCK_MATH_DELIMITERS[:asciimath].to_s}], ignoreClass: "nostem|noasciimath" }, TeX: {#{eqnums_opt}} }); - script src='#{cdn_base}/mathjax/2.4.0/MathJax.js?config=TeX-MML-AM_HTMLorMML' + script src='#{mathjaxdir}/MathJax.js?config=TeX-MML-AM_HTMLorMML' - syntax_hl = self.syntax_highlighter - if syntax_hl && (syntax_hl.docinfo? :head) =syntax_hl.docinfo :head, self, cdn_base_url: cdn_base, linkcss: linkcss, self_closing_tag_slash: '/' @@ -123,9 +126,11 @@ history: #{to_boolean(attr 'revealjs_history', false)}, // Enable keyboard shortcuts for navigation keyboard: #{to_boolean(attr 'revealjs_keyboard', true)}, // Enable the slide overview mode overview: #{to_boolean(attr 'revealjs_overview', true)}, + // Disables the default reveal.js slide layout so that you can use custom CSS layout + disableLayout: #{to_boolean(attr 'revealjs_disablelayout', false)}, // Vertical centering of slides center: #{to_boolean(attr 'revealjs_center', true)}, // Enables touch navigation on devices with touch input touch: #{to_boolean(attr 'revealjs_touch', true)}, // Loop the presentation