-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
21 lines (21 loc) · 727 Bytes
/
index.html
File metadata and controls
21 lines (21 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/github-markdown.min.css">
</head>
<body>
<main class="markdown-body"></main>
<script src="https://cdn.jsdelivr.net/npm/markdown-it@8.4.2/dist/markdown-it.js"></script>
<script>
const md = new markdownit();
const main = document.querySelector('main')
fetch("README.md", {cache: "no-cache"}).then(res => res.text()).then(text => {
main.innerHTML = md.render(text)
});
</script>
</body>
</html>