repl.it
@mat1/

rules

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • rules.md
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
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
58
59
60
61
62
63
<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
	<style>
		body {font-family:sans-serif;background-color:#111c31;color:#c0c0c0}
		blockquote {font-style:italic;border-left:3px solid black;padding-left:20px}
		h1 {
			font-size:30px;
			line-height:36px;
			font-weight:400
		}
		h2{
			font-size:26px;
			margin-top:20px;
			margin-bottom:20px;
			line-height:30px;
		}
		h3{
			font-size:24px;
			line-height:26px;
			font-weight: 400;
			margin-top: 10px;
			margin-bottom: 10px;
		}
		h4 {
			font-size: 22px;
			line-height: 24px;
			font-weight: 400;
			margin-top: 10px;
			margin-bottom: 10px;
		}
		h5{
			font-size:20px;
			line-height:22px;
			font-weight:400;
			margin-top:10px;
			margin-bottom:10px
		}
		ul{
			margin:20px 0px
		}
		li{
			padding-left:0.5em;text-indent:-0.7em
		}
		a{
			color:#4183c4
		}
	</style>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script>
		fetch('/rules.md')
			.then(async(r) => {
				const m = await r.text()
				document.getElementById('content').innerHTML = marked(m)
			})
  </script>
</body>
</html>
result
console