ucaslcl commited on
Commit
b482c60
1 Parent(s): 462ad59

Upload 2 files

Browse files
render_tools/content-mmd-to-html.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" data-lt-installed="true"><head>
3
+ <meta charset="UTF-8">
4
+ <title>Title</title>
5
+ <script>
6
+ const text =
7
+ </script>
8
+ <style>
9
+ #content {
10
+ max-width: 800px;
11
+ margin: auto;
12
+ }
13
+ </style>
14
+ <script>
15
+ let script = document.createElement('script');
16
+ script.src = "https://cdn.jsdelivr.net/npm/mathpix-markdown-it@1.3.6/es5/bundle.js";
17
+ document.head.append(script);
18
+
19
+ script.onload = function() {
20
+ const isLoaded = window.loadMathJax();
21
+ if (isLoaded) {
22
+ console.log('Styles loaded!')
23
+ }
24
+
25
+ const el = window.document.getElementById('content-text');
26
+ if (el) {
27
+ const options = {
28
+ htmlTags: true
29
+ };
30
+ const html = window.render(text, options);
31
+ el.outerHTML = html;
32
+ }
33
+ };
34
+ </script>
35
+ </head>
36
+ <body>
37
+ <div id="content"><div id="content-text"></div></div>
38
+ </body>
39
+ </html>
render_tools/tikz.html ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+
5
+ <head>
6
+ <meta charset="UTF-8">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+ <title>Document</title>
9
+ <link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
10
+ <script src="https://tikzjax.com/v1/tikzjax.js"></script>
11
+ </head>
12
+ <body>
13
+ <script type="text/tikz">
14
+ const text =
15
+ </script>
16
+ </body>
17
+ </html>