Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated KaTeX to 0.10.1 #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 62 additions & 61 deletions inst/rmarkdown/templates/shower/resources/default.html
Original file line number Diff line number Diff line change
@@ -1,81 +1,82 @@
<!DOCTYPE html>
<html$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="$shower-theme-url$/package/styles/screen-$ratio$.css">
<link rel="stylesheet" href="$shower-url$/style-common.css">
<link rel="stylesheet" href="$shower-url$/style-$theme$.css">
<link rel="stylesheet" href="$shower-theme-url$/style-override.css">
$if(katex)$
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="$shower-url$/auto-render.min.js" type="text/javascript"></script>
$endif$

$if(highlightjs)$
<link rel="stylesheet"
href="$highlightjs$/$if(highlightjs-theme)$$highlightjs-theme$$else$default$endif$.css"
$if(html5)$$else$type="text/css" $endif$/>
<script src="$highlightjs$/highlight.js"></script>
$endif$

$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$

$if(css)$
<html$if(lang)$ lang="$lang$" $endif$$if(dir)$ dir="$dir$" $endif$>

<head>
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="$shower-theme-url$/package/styles/screen-$ratio$.css">
<link rel="stylesheet" href="$shower-url$/style-common.css">
<link rel="stylesheet" href="$shower-url$/style-$theme$.css">
<link rel="stylesheet" href="$shower-theme-url$/style-override.css">
$if(katex)$
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.1/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.1/katex.min.js"></script>
<script src="$shower-url$/auto-render.min.js" type="text/javascript"></script>
$endif$

$if(highlightjs)$
<link rel="stylesheet" href="$highlightjs$/$if(highlightjs-theme)$$highlightjs-theme$$else$default$endif$.css"
$if(html5)$$else$type="text/css" $endif$ />
<script src="$highlightjs$/highlight.js"></script>
$endif$

$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$

$if(css)$
$for(css)$
<link rel="stylesheet" href="$css$"/>
<link rel="stylesheet" href="$css$" />
$endfor$
$endif$
$endif$

$for(header-includes)$
$for(header-includes)$
$header-includes$
$endfor$
$endfor$

</head>
</head>

<body class="shower list">
<body class="shower list">

<header class="caption">
<h1>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</h1>
<p>$author$</p>
</header>
<header class="caption">
<h1>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</h1>
<p>$author$</p>
</header>

$if(maketitle)$
<section class="slide level1 titlepage">
<h1>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</h1>
<h2>$author$ <br> $email$</h2>
</section>
$endif$
$if(maketitle)$
<section class="slide level1 titlepage">
<h1>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</h1>
<h2>$author$ <br> $email$</h2>
</section>
$endif$

$for(include-before)$
$for(include-before)$
$include-before$
$endfor$
$endfor$

$body$
$body$

<!--
<!--
To hide progress bar from entire presentation
just remove “progress” element.
-->
<!-- <div class="progress"></div> -->
<script src="$shower-url$/node_modules/shower/node_modules/shower-core/shower.min.js"></script>
<!-- Copyright © 2015 Yours Truly, Famous Inc. -->
<!-- Photos by John Carey, fiftyfootshadows.net -->
<!-- <div class="progress"></div> -->
<script src="$shower-url$/node_modules/shower/node_modules/shower-core/shower.min.js"></script>
<!-- Copyright © 2015 Yours Truly, Famous Inc. -->
<!-- Photos by John Carey, fiftyfootshadows.net -->

$if(katex)$
<script>renderMathInElement(document.body);</script>
$endif$
$if(katex)$
<script>renderMathInElement(document.body);</script>
$endif$

$for(include-after)$
$for(include-after)$
$include-after$
$endfor$
$endfor$

</body>

</body>
</html>
</html>