Debian Codegraph @

tests/output/renderer/gfm-test-user-content.html

raw symbols SCIP
1 <h1>GitHub Flavored Markdown Test</h1>
2 <p>This Markdown file contains all the features of <strong>GitHub Flavored Markdown</strong> for<br>
3 testing a renderer with.</p>
4 <p>The features are taken directly from <a href="https://daringfireball.net/projects/markdown/syntax" rel="nofollow">Daring Fireball</a><br>
5 and <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a>,<br>
6 followed by a list of one-offs.</p>
7 <h2>Inline HTML</h2>
8 <table role="table">
9 <tbody><tr>
10 <td>Foo</td>
11 </tr>
12 <tr>
13 <td>
14 Note that Markdown formatting syntax is not processed within block-level HTML tags.
15 E.g., you can’t use Markdown-style *emphasis* inside an HTML block.
16 </td>
17 </tr>
18 </tbody></table>
19 <p>Span-level HTML tags — e.g. &lt;span&gt;, &lt;cite&gt;, or &lt;del&gt; — can be used anywhere<br>
20 in a Markdown paragraph, list item, or header. If you want, you can even use HTML tags instead<br>
21 of Markdown formatting; e.g. if you’d prefer to use HTML &lt;a&gt; or &lt;img&gt; tags instead<br>
22 of Markdown’s link or image syntax, go right ahead.</p>
23 <h4>Testing <span>span</span>, cite, and <del>del</del> tags</h4>
24 <p>Testing <span>span</span>, cite, and <del>del</del> tags in a paragraph.</p>
25 <p>And each element in its own list item:</p>
26 <ul>
27 <li><span>This is within a span tag.</span></li>
28 <li>This is within a cite tag.</li>
29 <li><del>This is within a del tag.</del></li>
30 </ul>
31 <h2>Automatic escaping for special characters</h2>
32 <ul>
33 <li>© copyright</li>
34 <li>AT&amp;T should render the same as AT&amp;T</li>
35 <li>4 &lt; 5 should render the same as 4 &lt; 5</li>
36 </ul>
37 <p>Note that GitHub Flavored Markdown has URL autolinking, which will <em>not</em><br>
38 convert <code>&amp;amp;</code>. So these two should yield different links:</p>
39 <ul>
40 <li><a href="http://images.google.com/images?num=30&amp;q=larry+bird" rel="nofollow">http://images.google.com/images?num=30&amp;q=larry+bird</a></li>
41 <li><a href="http://images.google.com/images?num=30&amp;amp;q=larry+bird" rel="nofollow">http://images.google.com/images?num=30&amp;amp;q=larry+bird</a></li>
42 </ul>
43 <h2>Paragraphs and line breaks</h2>
44 <p>This is a normal paragraph.</p>
45 <p>This and the next sentence is separated by a single newline.<br>
46 This should be on the same line.</p>
47 <p>This and the next sentence is joined by a single <code>&lt;br /&gt;</code>. <br><br>
48 This should be on a new line, directly below.</p>
49 <p>These two sentences are separated by two <code>&lt;br /&gt;</code> tags. <br><br><br>
50 This should be two lines below.</p>
51 <p>These two paragraphs are separated by two <code>&lt;br /&gt;</code> tags. <br><br></p>
52 <p>This should be three lines below.</p>
53 <h2>Headers</h2>
54 <p>Here are some headers followed by <a href="https://en.wikipedia.org/wiki/Lorem_ipsum" rel="nofollow">Lorem Ipsum</a>.</p>
55 <h1>This is an H1 (Setext-style)</h1>
56 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
57 <h2>This is an H2 (Setext-style)</h2>
58 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
59 <p>The following are atx-style.</p>
60 <h1>This is an H1</h1>
61 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
62 <h2>This is an H2</h2>
63 <p>Mauris feugiat, augue vitae sollicitudin vulputate, neque arcu dapibus eros, eget semper lorem ex rhoncus nulla.</p>
64 <h3>This is an H3</h3>
65 <p>Etiam sit amet orci sit amet dui mollis molestie.</p>
66 <h4>This is an H4</h4>
67 <p>Cras et elit egestas, lacinia est eu, vestibulum enim.</p>
68 <h5>This is an H5</h5>
69 <p>Phasellus sed suscipit quam.</p>
70 <h6>This is an H√36</h6>
71 <p>Nam rutrum imperdiet purus, sit amet porttitor augue tempor quis.</p>
72 <h2>Blockquotes</h2>
73 <p>Email-style blockquotes:</p>
74 <blockquote>
75 <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,<br>
76 consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.<br>
77 Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
78 <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse<br>
79 id sem consectetuer libero luctus adipiscing.</p>
80 </blockquote>
81 <p>Putting the &gt; before the first line of a hard-wrapped paragraph:</p>
82 <blockquote>
83 <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,<br>
84 consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.<br>
85 Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
86 </blockquote>
87 <blockquote>
88 <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse<br>
89 id sem consectetuer libero luctus adipiscing.</p>
90 </blockquote>
91 <p>Nested blockquotes (i.e. a blockquote-in-a-blockquote):</p>
92 <blockquote>
93 <p>This is the first level of quoting.</p>
94 <blockquote>
95 <p>This is nested blockquote.</p>
96 </blockquote>
97 <p>Back to the first level.</p>
98 </blockquote>
99 <p>Blockquotes containing other Markdown elements:</p>
100 <blockquote>
101 <h2>This is a header.</h2>
102 <ol>
103 <li>This is the first list item.</li>
104 <li>This is the second list item.</li>
105 </ol>
106 <p>Here's some example code:</p>
107 <pre><code>return shell_exec("echo $input | $markdown_script");
108 </code></pre>
109 </blockquote>
110 <h2>Lists</h2>
111 <h5>These three lists should be equivalent</h5>
112 <p>First:</p>
113 <ul>
114 <li>Red</li>
115 <li>Green</li>
116 <li>Blue</li>
117 </ul>
118 <p>Second:</p>
119 <ul>
120 <li>Red</li>
121 <li>Green</li>
122 <li>Blue</li>
123 </ul>
124 <p>Third:</p>
125 <ul>
126 <li>Red</li>
127 <li>Green</li>
128 <li>Blue</li>
129 </ul>
130 <h4>These three ordered lists should be equivalent</h4>
131 <p>First:</p>
132 <ol>
133 <li>Bird</li>
134 <li>McHale</li>
135 <li>Parish</li>
136 </ol>
137 <p>Second:</p>
138 <ol>
139 <li>Bird</li>
140 <li>McHale</li>
141 <li>Parish</li>
142 </ol>
143 <p>Third:</p>
144 <ol start="3">
145 <li>Bird</li>
146 <li>McHale</li>
147 <li>Parish</li>
148 </ol>
149 <h4>These two lists should be equivalent</h4>
150 <p>First:</p>
151 <ul>
152 <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br>
153 Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,<br>
154 viverra nec, fringilla in, laoreet vitae, risus.</li>
155 <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.<br>
156 Suspendisse id sem consectetuer libero luctus adipiscing.</li>
157 </ul>
158 <p>Second:</p>
159 <ul>
160 <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<br>
161 Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,<br>
162 viverra nec, fringilla in, laoreet vitae, risus.</li>
163 <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.<br>
164 Suspendisse id sem consectetuer libero luctus adipiscing.</li>
165 </ul>
166 <h4>Paragraphs and lists</h4>
167 <ul>
168 <li>Bird</li>
169 <li>Magic</li>
170 </ul>
171 <p>Blank line separated:</p>
172 <ul>
173 <li>
174 <p>Bird</p>
175 </li>
176 <li>
177 <p>Magic</p>
178 </li>
179 </ul>
180 <h4>Paragraphs within lists</h4>
181 <p>First:</p>
182 <ol>
183 <li>
184 <p>This is a list item with two paragraphs. Lorem ipsum dolor<br>
185 sit amet, consectetuer adipiscing elit. Aliquam hendrerit<br>
186 mi posuere lectus.</p>
187 <p>Vestibulum enim wisi, viverra nec, fringilla in, laoreet<br>
188 vitae, risus. Donec sit amet nisl. Aliquam semper ipsum<br>
189 sit amet velit.</p>
190 </li>
191 <li>
192 <p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
193 </li>
194 </ol>
195 <p>Second:</p>
196 <ul>
197 <li>
198 <p>This is a list item with two paragraphs.</p>
199 <p>This is the second paragraph in the list item. You're<br>
200 only required to indent the first line. Lorem ipsum dolor<br>
201 sit amet, consectetuer adipiscing elit.</p>
202 </li>
203 <li>
204 <p>Another item in the same list.</p>
205 </li>
206 </ul>
207 <h4>Blockquote within a list</h4>
208 <ul>
209 <li>
210 <p>A list item with a blockquote:</p>
211 <blockquote>
212 <p>This is a blockquote<br>
213 inside a list item.</p>
214 </blockquote>
215 </li>
216 </ul>
217 <h4>Code within a list</h4>
218 <ul>
219 <li>
220 <p>A list item with a code block:</p>
221 <pre><code>&lt;code goes here&gt;
222 </code></pre>
223 </li>
224 </ul>
225 <h4>Accidental lists</h4>
226 <ol start="1986">
227 <li>What a great season. (oops, I wanted a year, not a list)</li>
228 </ol>
229 <p>1986. What a great season. (<em>whew!</em> there we go)</p>
230 <h2>Code blocks</h2>
231 <p>This is a normal paragraph:</p>
232 <pre><code>This is a code block.
233 </code></pre>
234 <p>Here is an example of AppleScript:</p>
235 <pre><code>tell application "Foo"
236 beep
237 end tell
238 </code></pre>
239 <p>Markdown will handle the hassle of encoding the ampersands and angle brackets:</p>
240 <pre><code>&lt;div class="footer"&gt;
241 &amp;copy; 2004 Foo Corporation
242 &lt;/div&gt;
243
244
245 def this_is
246 puts "some #{4-space-indent} code"
247 end
248 </code></pre>
249 <code>
250 print('Code block')
251 </code>
252 <pre>print('Pre block')
253 </pre>
254 <h2>Horizontal rules</h2>
255 <hr>
256 <hr>
257 <hr>
258 <hr>
259 <hr>
260 <h2>Links</h2>
261 <p>Markdown supports two style of links: inline and reference.</p>
262 <p>This is <a href="http://joeyespo.com/" title="Title" rel="nofollow">an example</a> inline link.</p>
263 <p><a href="http://joeyespo.com/" rel="nofollow">This link</a> has no title attribute.</p>
264 <p>See my <a href="/about/">About</a> page for some awesome people (<em>note: broken link</em>).</p>
265 <p>This is <a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">an example</a> reference-style link.<br>
266 This is [an example] <a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">id</a> reference-style link with a space separating the brackets.</p>
267 <p>These should all be equivalent:</p>
268 <ul>
269 <li><a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">foo 1</a></li>
270 <li><a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">foo 2</a></li>
271 <li><a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">foo 3</a></li>
272 <li><a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">foo 4</a></li>
273 <li><a href="http://joeyespo.com/" title="Optional Title Here" rel="nofollow">foo 5</a></li>
274 </ul>
275 <h2>Emphasis</h2>
276 <ul>
277 <li><em>single asterisks</em></li>
278 <li><em>single underscores</em></li>
279 <li><strong>double asterisks</strong></li>
280 <li><strong>double underscores</strong></li>
281 <li>un<em>frigging</em>believable</li>
282 <li>*this text is surrounded by literal asterisks*</li>
283 </ul>
284 <h2>Code</h2>
285 <ul>
286 <li>Use the <code>printf()</code> function.</li>
287 <li><code>There is a literal backtick (`) here.</code></li>
288 <li>A single backtick in a code span: <code>`</code></li>
289 <li>A backtick-delimited string in a code span: <code>`foo`</code></li>
290 <li>Please don't use any <code>&lt;blink&gt;</code> tags.</li>
291 <li><code>&amp;#8212;</code> is the decimal-encoded equivalent of <code>&amp;mdash;</code></li>
292 </ul>
293 <h2>Images</h2>
294 <ul>
295 <li><a target="_blank" rel="noopener noreferrer" href="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico"><img src="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico" alt="Alt text" style="max-width: 100%;"></a></li>
296 <li><a target="_blank" rel="noopener noreferrer" href="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico"><img src="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico" alt="Alt text" title="Optional title" style="max-width: 100%;"></a></li>
297 <li><a target="_blank" rel="noopener noreferrer" href="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico"><img src="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico" alt="Alt text" title="Optional title attribute" style="max-width: 100%;"></a></li>
298 <li><a target="_blank" rel="noopener noreferrer" href="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico"><img src="https://raw.githubusercontent.com/joeyespo/grip/master/artwork/favicon.ico" width="32" height="32" style="max-width: 100%;"></a>   ← bigger &amp; blurrier</li>
299 </ul>
300 <h2>Automatic links</h2>
301 <ul>
302 <li><a href="http://joeyespo.com/" rel="nofollow">http://joeyespo.com/</a></li>
303 <li><a href="mailto:[email protected]">[email protected]</a></li>
304 </ul>
305 <h2>Backslash escapes</h2>
306 <ul>
307 <li>*literal asterisks*</li>
308 <li>\ backslash</li>
309 <li>` backtick</li>
310 <li>* asterisk</li>
311 <li>_ underscore</li>
312 <li>{} curly braces</li>
313 <li>[] square brackets</li>
314 <li>() parentheses</li>
315 <li># hash mark</li>
316 <li>+ plus sign</li>
317 <li>- minus sign (hyphen)</li>
318 <li>. dot</li>
319 <li>! exclamation mark</li>
320 </ul>
321 <h2>GitHub Flavored Markdown</h2>
322 <p>See <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a> for details.</p>
323 <h4>Multiple underscores in words</h4>
324 <ul>
325 <li>wow_great_stuff</li>
326 </ul>
327 <h4>URL autolinking</h4>
328 <p><a href="http://joeyespo.com" rel="nofollow">http://joeyespo.com</a></p>
329 <h4>Strikethrough</h4>
330 <p><del>Mistaken text.</del></p>
331 <h4>Fenced code blocks</h4>
332 <pre><code>function test() {
333 console.log("notice the blank line before this function?");
334 }
335 </code></pre>
336 <h4>Syntax highlighting</h4>
337 <div class="highlight highlight-source-python"><pre><span class="pl-en">print</span>(<span class="pl-s">'Hello!'</span>)</pre></div>
338 <div class="highlight highlight-source-js"><pre><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'JavaScript!'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
339 <div class="highlight highlight-source-js"><pre><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'JavaScript (with js)!'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
340 <pre lang="unmatched_language"><code>console.log('No matching language, but looks like JavaScript.');
341 </code></pre>
342 <h4>Tables</h4>
343 <p>Simple:</p>
344 <table role="table">
345 <thead>
346 <tr>
347 <th>First Header</th>
348 <th>Second Header</th>
349 </tr>
350 </thead>
351 <tbody>
352 <tr>
353 <td>Content Cell</td>
354 <td>Content Cell</td>
355 </tr>
356 <tr>
357 <td>Content Cell</td>
358 <td>Content Cell</td>
359 </tr>
360 </tbody>
361 </table>
362 <p>Pipes:</p>
363 <table role="table">
364 <thead>
365 <tr>
366 <th>First Header</th>
367 <th>Second Header</th>
368 </tr>
369 </thead>
370 <tbody>
371 <tr>
372 <td>Content Cell</td>
373 <td>Content Cell</td>
374 </tr>
375 <tr>
376 <td>Content Cell</td>
377 <td>Content Cell</td>
378 </tr>
379 </tbody>
380 </table>
381 <p>Unmatched:</p>
382 <table role="table">
383 <thead>
384 <tr>
385 <th>Name</th>
386 <th>Description</th>
387 </tr>
388 </thead>
389 <tbody>
390 <tr>
391 <td>Help</td>
392 <td>Display the help window.</td>
393 </tr>
394 <tr>
395 <td>Close</td>
396 <td>Closes a window</td>
397 </tr>
398 </tbody>
399 </table>
400 <p>Inner Markdown:</p>
401 <table role="table">
402 <thead>
403 <tr>
404 <th>Name</th>
405 <th>Description</th>
406 </tr>
407 </thead>
408 <tbody>
409 <tr>
410 <td>Help</td>
411 <td><del>Display the</del> help window.</td>
412 </tr>
413 <tr>
414 <td>Close</td>
415 <td><em>Closes</em> a window</td>
416 </tr>
417 </tbody>
418 </table>
419 <p>Alignment:</p>
420 <table role="table">
421 <thead>
422 <tr>
423 <th align="left">Left-Aligned</th>
424 <th align="center">Center Aligned</th>
425 <th align="right">Right Aligned</th>
426 </tr>
427 </thead>
428 <tbody>
429 <tr>
430 <td align="left">col 3 is</td>
431 <td align="center">some wordy text</td>
432 <td align="right">$1600</td>
433 </tr>
434 <tr>
435 <td align="left">col 2 is</td>
436 <td align="center">centered</td>
437 <td align="right">$12</td>
438 </tr>
439 <tr>
440 <td align="left">zebra stripes</td>
441 <td align="center">are neat</td>
442 <td align="right">$1</td>
443 </tr>
444 <tr>
445 <td align="left">Text right below a table.</td>
446 <td align="center"></td>
447 <td align="right"></td>
448 </tr>
449 </tbody>
450 </table>
451 <h4>HTML</h4>
452 <p><em>TODO: Test all allowed HTML tags.</em></p>
453 <h2>Writing on GitHub</h2>
454 <p>See <a href="https://help.github.com/articles/writing-on-github/">this article</a> for details.</p>
455 <h4>Newlines</h4>
456 <p>Roses are red<br>
457 Violets are Blue</p>
458 <h4>Task lists</h4>
459 <ul class="contains-task-list">
460 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> @mentions, #refs, <a href="">links</a>, <strong>formatting</strong>, and <del>tags</del> are supported</li>
461 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> list syntax is required (any unordered or ordered list supported)</li>
462 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> this is a complete item</li>
463 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> this is an incomplete item</li>
464 </ul>
465 <p>Task lists can be nested to better structure your tasks:</p>
466 <ul class="contains-task-list">
467 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> a bigger project
468 <ul class="contains-task-list">
469 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> first subtask #1234</li>
470 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> follow up subtask #4321</li>
471 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> final subtask cc @mention</li>
472 </ul>
473 </li>
474 <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> a separate task</li>
475 </ul>
476 <h4>References</h4>
477 <ul>
478 <li>SHA: dbcd7a410ee7489acf92f40641a135fbcf52a768</li>
479 <li>User@SHA: joeyespo@dbcd7a410ee7489acf92f40641a135fbcf52a768</li>
480 <li>User/Repository@SHA: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/joeyespo/grip/commit/dbcd7a410ee7489acf92f40641a135fbcf52a768/hovercard" href="https://github.com/joeyespo/grip/commit/dbcd7a410ee7489acf92f40641a135fbcf52a768">joeyespo/grip@<tt>dbcd7a4</tt></a></li>
481 <li>#Num: #135</li>
482 <li>GH-Num: GH-135</li>
483 <li>User#Num: joeyespo#135</li>
484 <li>User/Repository#Num: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="93030887" data-permission-text="Title is private" data-url="https://github.com/joeyespo/grip/issues/135" data-hovercard-type="pull_request" data-hovercard-url="/joeyespo/grip/pull/135/hovercard" href="https://github.com/joeyespo/grip/pull/135">joeyespo/grip#135</a></li>
485 </ul>