Läser in Marked och MathJax för rendrering

This commit is contained in:
2024-07-30 00:13:34 +02:00
parent 7d954e7380
commit 854ebbdd94
+9 -2
View File
@@ -12,15 +12,22 @@
<!-- messages will be rendered here -->
</div>
<textarea id="userInput" placeholder="Type your message..." rows="5"></textarea>
<button onclick="sendMessage()">Send</button>
<button id="sendButton" onclick="sendMessage()">Send</button>
<!-- Get the apiEndpoint -->
<script>
const apiEndpoint = window.apiEndpoint;
const useModel = window.useModel;
</script>
<!-- Marked for markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Include MathJax library to render mathematical notation -->
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Get the javascript handling communication with the backend -->
<script src="/js/frontend.js"></script>