render markdown
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s
This commit is contained in:
parent
83df55e089
commit
372ce92e2e
3 changed files with 26 additions and 3 deletions
15
public/viewer.html
Normal file
15
public/viewer.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue