-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkdown.html
134 lines (127 loc) · 4.2 KB
/
markdown.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- for dark background -->
<link rel="stylesheet" href="markdown.css" />
<title>Document</title>
</head>
<body class="markdown-body">
<h3 id="heading">Heading</h3>
<h1 id="h1">H1</h1>
<h2 id="h2">H2</h2>
<h3 id="h3">H3</h3>
<h3 id="bold">Bold</h3>
<p><strong>bold text</strong> <strong>bold text</strong></p>
<h3 id="italics">Italics</h3>
<p><em>italicized text</em> or <em>italicized text</em></p>
<h3 id="blockquote">Blockquote</h3>
<blockquote>
<p>blockquote</p>
</blockquote>
<h3 id="ordered-list">Ordered List</h3>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
<h3 id="unordered-list">Unordered List</h3>
<ul>
<li>First item</li>
<li>Second item</li>
<li>
<p>Third item</p>
</li>
<li>
<p>Another style</p>
</li>
<li>
<p>Another style</p>
</li>
</ul>
<h3 id="code">Code</h3>
<p><code>inline code</code></p>
<h3 id="horizontal-rule">Horizontal Rule</h3>
<hr>
<hr>
<hr>
<h3 id="link">Link</h3>
<p><a href="https://www.markdownguide.org">Markdown Guide</a></p>
<h3 id="image">Image</h3>
<p><img src="https://www.markdownguide.org/assets/images/tux.png" alt="alt text" title="Logo Title Text 2"></p>
<p><img src="https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png" alt="alt text"
title="Logo Title Text 2""></p>
<h2 id="extended-syntax">Extended Syntax</h2>
<p>These elements extend the basic syntax by adding additional features. Not all Markdown applications support these
elements.</p>
<h3 id="table">Table</h3>
<table>
<thead>
<tr>
<th>Syntax</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Header</td>
<td>Title</td>
</tr>
<tr>
<td>Paragraph</td>
<td>Text</td>
</tr>
</tbody>
</table>
<h3 id="tabe-2">Tabe 2</h3>
<table>
<thead>
<tr>
<th>Markdown</th>
<th>Less</th>
<th>Pretty</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>Still</em></td>
<td><code>renders</code></td>
<td><strong>nicely</strong></td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
<h3 id="fenced-code-block-with-syntax-highlighting">Fenced Code Block with syntax highlighting</h3>
<pre><code class="lang-javascript"><span class="hljs-keyword">const</span> messagesEndRef = useRef(<span class="hljs-literal">null</span>);
<span class="hljs-keyword">const</span> [msgs, setMsgs] = useState([]);
<span class="hljs-keyword">const</span> scrollToBottom = <span class="hljs-function"><span class="hljs-params">()</span> =></span> {
messagesEndRef.current?.scrollIntoView({ <span class="hljs-attr">behavior</span>: <span class="hljs-string">"smooth"</span> });
};
useEffect(<span class="hljs-function"><span class="hljs-params">()</span> =></span> {
scrollToBottom();
}, [msgs])
</code></pre>
<h3 id="footnote">Footnote</h3>
<p>Here's a sentence with a footnote. [^1]</p>
<p>[^1]: This is the footnote.</p>
<h3 id="heading-id">Heading ID</h3>
<h3 id="my-great-heading-custom-id-">My Great Heading {#custom-id}</h3>
<h3 id="definition-list">Definition List</h3>
<p>term
: definition</p>
<h3 id="strikethrough">Strikethrough</h3>
<p><del>The world is flat.</del></p>
<h3 id="task-list">Task List</h3>
<ul>
<li>[x] Write the press release</li>
<li>[ ] Update the website</li>
<li>[ ] Contact the media</li>
</ul>
</body>
</html>