Mercurial > repos > public > wdown
diff test.tmpl @ 8:4a25b534c81c javascript-experiment
Add v8 engine and include katex
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Jun 2020 21:43:52 +0200 |
parents | a5aa39557726 |
children |
line wrap: on
line diff
--- a/test.tmpl Wed Jun 17 12:23:56 2020 +0200 +++ b/test.tmpl Wed Jun 17 21:43:52 2020 +0200 @@ -1,6 +1,12 @@ +<!DOCTYPE html> <html> <head> <title>{{title}}</title> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> + + <!-- The loading of KaTeX is deferred to speed up page rendering --> + <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> + </head> <body> {{{content}}}