resources/public/viewer.html
Lichene 372ce92e2e
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s
render markdown
2025-11-14 15:15:32 +01:00

15 lines
389 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
<div id="content"></div>
<script>
const mdFile = new URLSearchParams(location.search).get("file");
fetch(mdFile)
.then(r => r.text())
.then(text => document.getElementById("content").innerHTML = marked.parse(text));
</script>
</body>
</html>