-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
26 lines (26 loc) · 828 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!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/[email protected]/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>