-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
89 lines (83 loc) · 4.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link data-trunk rel="rust" data-bin="main" />
<link data-trunk rel="copy-dir" href="public">
<link data-trunk rel="scss" href="/styles/app.css" />
<!-- Font Awesome CSS-->
<link href="https://cdn.bootcss.com/font-awesome/5.13.0/css/all.css" rel="stylesheet">
<base data-trunk-public-url>
<title>Yew App</title>
<script type="text/javascript">
var mathPackages = ['noundefined', 'autoload', 'ams', 'textmacros', 'xypic'];
MathJax = {
loader: {
load: ['[custom]/xypic.js'],
paths: {custom: 'https://cdn.jsdelivr.net/gh/sonoisa/[email protected]/build/'}
},
tex: {
macros: {
AA:"\u00c5",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",and:"\\land",ang:"\\angle",Bbb:"\\mathbb",Beta:"\\mathrm{B}",bold:"\\mathbf",bull:"\\bullet",C:"\\mathbb{C}",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",coppa:"\u03D9",Coppa:"\u03D8",Dagger:"\\ddagger",Digamma:"\u03DC",darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",euro:"\u20AC",exist:"\\exists",geneuro:"\u20AC",geneuronarrow:"\u20AC",geneurowide:"\u20AC",H:"\\mathbb{H}",hAar:"\\Leftrightarrow",harr:"\\leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",koppa:"\u03DF",Koppa:"\u03DE",lang:"\\langle",larr:"\\leftarrow",Larr:"\\Leftarrow",lArr:"\\Leftarrow",lrarr:"\\leftrightarrow",Lrarr:"\\Leftrightarrow",lrArr:"\\Leftrightarrow",Mu:"\\mathrm{M}",N:"\\mathbb{N}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",O:"\\emptyset",officialeuro:"\u20AC",Omicron:"\\mathrm{O}",or:"\\lor",P:"\u00B6",pagecolor:["",1],part:"\\partial",plusmn:"\\pm",Q:"\\mathbb{Q}",R:"\\mathbb{R}",rang:"\\rangle",rarr:"\\rightarrow",Rarr:"\\Rightarrow",rArr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sampi:"\u03E1",Sampi:"\u03E0",sect:"\\S",spades:"\\spadesuit",stigma:"\u03DB",Stigma:"\u03DA",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",textvisiblespace:"\u2423",thetasym:"\\vartheta",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",varcoppa:"\u03D9",varstigma:"\u03DB",vline:"\\smash{\\large\\lvert}",weierp:"\\wp",Z:"\\mathbb{Z}",Zeta:"\\mathrm{Z}",
dashint: "\\unicodeInt{x2A0D}",
ddashint: "\\unicodeInt{x2A0E}",
oiint: "\\unicodeInt{x222F}",
oiiint: "\\unicodeInt{x2230}",
ointctrclockwise: "\\unicodeInt{x2233}",
unicodeInt: ["\\mathop{\\vcenter{\\mathchoice{\\huge\\unicode{#1}\\,}{\\unicode{#1}}{\\unicode{#1}}{\\unicode{#1}}}\\,}\\nolimits", 1],
varointclockwise: "\\unicodeInt{x2232}",
},
maxBuffer: 10*1024,
displayMath: [['$$\n', '\n$$'], ['$$\r\n', '\r\n$$']],
inlineMath: [ ['$','$'], ['$$', '$$']],
processEscapes: true,
packages: {'[+]': mathPackages},
tags: "all",
formatError: // function called when TeX syntax errors occur
(jax, err) => {
var message = err.message.replace(/\n.*/, "");
return jax.parseOptions.nodeFactory.create("error", message, err.id, "Error: " + message);
},
useLabelIds: true
},
svg: {
scale: 1,
minScale: 80,
},
options: {
skipHtmlTags: ["script","noscript","style","textarea","pre","code", "span"],
processHtmlClass: "md-mathjax-preview|md-inline-math|inline-math-export-jax|math-in-toc",
menuOptions: {
settings: {
inTabOrder: false
}
},
sre: {
speech: 'shallow', // or 'shallow', or 'deep'
},
enableMenu: false,
ignoreHtmlClass: 'tex2jax_ignore',
renderActions: {
//
// Force speech enrichment regardless of the menu settings
// https://mathjax.github.io/MathJax-demos-web/speech-tex-chtml.html.html
/*enrich: {'[+]': [
function (doc) {doc.enrich(true)},
function (math, doc) {math.enrich(doc, true)}
]}*/
}
}
};
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-chtml-full.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
function marked_parse(markdownText) {
let htmlContent = marked.parse(markdownText);
console.log(htmlContent)
return htmlContent;
}
</script>
</head>
<body></body>
</html>