mirror of
https://github.com/allenai/olmocr.git
synced 2025-08-22 15:52:43 +00:00
mathjax
This commit is contained in:
parent
baa82a4a9a
commit
a7cd7467c3
@ -90,6 +90,22 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.MathJax = {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
||||
},
|
||||
options: {
|
||||
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
||||
processHtmlClass: 'mathjax-process' // Class name for areas where LaTeX should be processed
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" id="MathJax-script" async
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document">
|
||||
@ -106,5 +122,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -28,7 +28,7 @@ dependencies = [
|
||||
"Pillow",
|
||||
"ftfy",
|
||||
"bleach",
|
||||
"duckdb",
|
||||
"markdown2",
|
||||
]
|
||||
license = {file = "LICENSE"}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user