-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog.html
57 lines (52 loc) · 1.38 KB
/
changelog.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notix Changelog</title>
<link href="https://unpkg.com/@picocss/[email protected]/css/pico.slim.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/[email protected]/dist/markdown-it.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ul {
margin-left: 2rem;
}
main {
display: flex;
flex-direction: column;
align-items: center;
max-width: 40rem;
}
h1 {
text-align: center;
color: teal;
}
h2 {
color: hsl(27,89%,48%);
}
footer{
text-align: center;
font-size: 0.8em;
}
</style>
</head>
<body>
<main>
<div></div>
<footer>Copyright of thuongtruong1009, 2023</footer>
</main>
<script type="text/javascript">
var mdBlock = document.querySelector("div");
const md = window.markdownit();
fetch('./CHANGELOG.md')
.then((response) => response.text())
.then((text) => {
mdBlock.innerHTML = md.render(text.replaceAll(/\[([^\]]+)\]\([^)]+\)/g, '$1'));
})
</script>
</body>
</html>