GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of mislav/bluecloth
Description: Markdown processor in Ruby; foked from official SVN repo to fix bugs
Homepage: http://www.deveiate.org/projects/BlueCloth
Clone URL: git://github.com/github/bluecloth.git
ged (author)
Sat Apr 10 13:35:02 -0700 2004
commit  d2aae8010c641996fda0e0c397f55d9164b127ed
tree    933c7be122029fe1f8caf5351d9c2ab8f4635a68
bluecloth / tests / 05_Markdown.tests.rb
100644 1037 lines (845 sloc) 20.881 kb
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
#!/usr/bin/ruby -w
#
# Test case for BlueCloth Markdown transforms.
# $Id: TEMPLATE.rb.tpl,v 1.2 2003/09/11 04:59:51 deveiant Exp $
#
# Copyright (c) 2004 The FaerieMUD Consortium.
#
 
if File::exists?( "lib/bluecloth.rb" )
  require 'tests/bctestcase'
else
  require 'bctestcase'
end
 
 
### This test case tests ...
class SubfunctionsTestCase < BlueCloth::TestCase
 
  TestSets = {}
  begin
    seenEnd = false
    inMetaSection = true
    inInputSection = true
    section, description, input, output = '', '', '', ''
    linenum = 0
 
    # Read this file, skipping lines until the __END__ token. Then start
    # reading the tests.
    File::foreach( __FILE__ ) {|line|
      linenum += 1
      if /^__END__/ =~ line then seenEnd = true; next end
      debugMsg "#{linenum}: #{line.chomp}"
      next unless seenEnd
 
      # Start off in the meta section, which has sections and
      # descriptions.
      if inMetaSection
        
        case line
 
        # Left angles switch into data section for the current section
        # and description.
        when /^<<</
          inMetaSection = false
          next
 
        # Section headings look like:
        # ### [Code blocks]
        when /^### \[([^\]]+)\]/
          section = $1.chomp
          TestSets[ section ] ||= {}
 
        # Descriptions look like:
        # # Para plus code block
        when /^# (.*)/
          description = $1.chomp
          TestSets[ section ][ description ] ||= {
            :line => linenum,
            :sets => [],
          }
 
        end
 
      # Data section has input and expected output parts
      else
 
        case line
 
        # Right angles terminate a data section, at which point we
        # should have enough data to add a test.
        when /^>>>/
          TestSets[ section ][ description ][:sets] << [ input.chomp, output.chomp ]
 
          inMetaSection = true
          inInputSection = true
          input = ''; output = ''
 
        # 3-Dashed divider with text divides input from output
        when /^--- (.+)/
          inInputSection = false
 
        # Anything else adds to either input or output
        else
          if inInputSection
            input += line
          else
            output += line
          end
        end
      end
    }      
  end
 
  debugMsg "Test sets: %p" % TestSets
 
  TestSets.each {|sname, section|
 
    section.each do |desc, test|
      methname = "test_%03d_%s" %
        [ test[:line], desc.gsub(/\W+/, '_').downcase ]
 
      code = %{
        def #{methname}
          printTestHeader "BlueCloth: #{desc}"
          rval = nil
      }
 
      test[:sets].each {|input, output|
        code << %{
          assert_nothing_raised {
            obj = BlueCloth::new(%p)
            rval = obj.to_html
          }
          assert_equal %p, rval
 
        } % [ input, output ]
      }
 
      code << %{
        end
      }
 
 
      debugMsg "--- %s [%s]:\n%s\n---\n" % [sname, desc, code]
      eval code
    end
 
  }
 
end
 
 
__END__
 
### [Paragraphs and Line Breaks]
 
# Paragraphs
<<<
This is some stuff that should all be
put in one paragraph
even though
it occurs over several lines.
 
And this is a another
one.
--- Should become:
<p>This is some stuff that should all be
put in one paragraph
even though
it occurs over several lines.</p>
 
<p>And this is a another
one.</p>
>>>
 
# Line breaks
<<<
Mostly the same kind of thing
with two spaces at the end
of each line
should result in
line breaks, though.
 
And this is a another
one.
--- Should become:
<p>Mostly the same kind of thing<br/>
with two spaces at the end<br/>
of each line<br/>
should result in<br/>
line breaks, though.</p>
 
<p>And this is a another<br/>
one.</p>
>>>
 
# Escaping special characters
<<<
The left shift operator, which is written as <<, is often used & greatly admired.
--- Should become:
<p>The left shift operator, which is written as &lt;&lt;, is often used &amp; greatly admired.</p>
>>>
 
# Preservation of named entities
<<<
The left shift operator, which is written as &lt;&lt;, is often used &amp; greatly admired.
--- Should become:
<p>The left shift operator, which is written as &lt;&lt;, is often used &amp; greatly admired.</p>
>>>
 
# Preservation of decimal-encoded entities
<<<
The left shift operator, which is written as &#060;&#060;, is often used &#038; greatly admired.
--- Should become:
<p>The left shift operator, which is written as &#060;&#060;, is often used &#038; greatly admired.</p>
>>>
 
# Preservation of hex-encoded entities
<<<
The left shift operator, which is written as &#x3c;&#x3c;, is often used &#x26; greatly admired.
--- Should become:
<p>The left shift operator, which is written as &#x3c;&#x3c;, is often used &#x26; greatly admired.</p>
>>>
 
# Inline HTML
<<<
This is a regular paragraph.
 
<table>
<tr>
<td>Foo</td>
</tr>
</table>
 
This is another regular paragraph.
--- Should become:
<p>This is a regular paragraph.</p>
 
<table>
<tr>
<td>Foo</td>
</tr>
</table>
 
<p>This is another regular paragraph.</p>
>>>
 
# Span-level HTML
<<<
This is some stuff with a <span class="foo">spanned bit of text</span> in
it. And <del>this *should* be a bit of deleted text</del> which should be
preserved, and part of it emphasized.
--- Should become:
<p>This is some stuff with a <span class="foo">spanned bit of text</span> in
it. And <del>this <em>should</em> be a bit of deleted text</del> which should be
preserved, and part of it emphasized.</p>
>>>
 
 
 
### [Code spans]
 
# Single backtick
<<<
Making `code` work for you
--- Should become:
<p>Making <code>code</code> work for you</p>
>>>
 
# Literal backtick with doubling
<<<
Making `` `code` `` work for you
--- Should become:
<p>Making <code>`code`</code> work for you</p>
>>>
 
# Many repetitions
<<<
Making `````code````` work for you
--- Should become:
<p>Making <code>code</code> work for you</p>
>>>
 
# Entity escaping
<<<
The left angle-bracket (`&lt;`) can also be written as a decimal-encoded
(`&#060;`) or hex-encoded (`&#x3c;`) entity.
--- Should become:
<p>The left angle-bracket (<code>&amp;lt;</code>) can also be written as a decimal-encoded
(<code>&amp;#060;</code>) or hex-encoded (<code>&amp;#x3c;</code>) entity.</p>
>>>
 
 
 
### [Code blocks]
 
# Para plus code block (literal tab)
<<<
This is a chunk of code:
 
  some.code > some.other_code
 
--- Should become:
<p>This is a chunk of code:</p>
 
<pre><code>some.code &gt; some.other_code
</code></pre>
>>>
 
# Para plus code block (tab-width spaces)
<<<
This is a chunk of code:
 
some.code > some.other_code
 
--- Should become:
<p>This is a chunk of code:</p>
 
<pre><code>some.code &gt; some.other_code
</code></pre>
>>>
 
# Colon with preceeding space
<<<
A regular paragraph, without a colon. :
 
This is a code block.
--- Should become:
<p>A regular paragraph, without a colon.</p>
 
<pre><code>This is a code block.
</code></pre>
>>>
 
# Single colon
<<<
:
  
  some.code > some.other_code
 
--- Should become:
<pre><code>some.code &gt; some.other_code
</code></pre>
>>>
 
 
### [Horizontal Rules]
 
# Hrule 1
<<<
* * *
--- Should become:
<hr/>
>>>
 
# Hrule 2
<<<
***
--- Should become:
<hr/>
>>>
 
# Hrule 3
<<<
*****
--- Should become:
<hr/>
>>>
 
# Hrule 4
<<<
- - -
--- Should become:
<hr/>
>>>
 
# Hrule 5
<<<
---------------------------------------
--- Should become:
<hr/>
>>>
 
 
### [Titles]
 
# setext-style h1
<<<
Title Text
=
--- Should become:
<h1>Title Text</h1>
>>>
 
<<<
Title Text
===
--- Should become:
<h1>Title Text</h1>
>>>
 
<<<
Title Text
==========
--- Should become:
<h1>Title Text</h1>
>>>
 
# setext-style h2
<<<
Title Text
-
--- Should become:
<h2>Title Text</h2>
>>>
 
<<<
Title Text
---
--- Should become:
<h2>Title Text</h2>
>>>
 
<<<
Title Text
----------
--- Should become:
<h2>Title Text</h2>
>>>
 
# ATX-style h1
<<<
# Title Text
--- Should become:
<h1>Title Text</h1>
>>>
 
<<<
# Title Text #
--- Should become:
<h1>Title Text</h1>
>>>
 
<<<
# Title Text ###
--- Should become:
<h1>Title Text</h1>
>>>
 
<<<
# Title Text #####
--- Should become:
<h1>Title Text</h1>
>>>
 
# ATX-style h2
<<<
## Title Text
--- Should become:
<h2>Title Text</h2>
>>>
 
<<<
## Title Text #
--- Should become:
<h2>Title Text</h2>
>>>
 
<<<
## Title Text ###
--- Should become:
<h2>Title Text</h2>
>>>
 
<<<
## Title Text #####
--- Should become:
<h2>Title Text</h2>
>>>
 
# ATX-style h3
<<<
### Title Text
--- Should become:
<h3>Title Text</h3>
>>>
 
<<<
### Title Text #
--- Should become:
<h3>Title Text</h3>
>>>
 
<<<
### Title Text ###
--- Should become:
<h3>Title Text</h3>
>>>
 
<<<
### Title Text #####
--- Should become:
<h3>Title Text</h3>
>>>
 
# ATX-style h4
<<<
#### Title Text
--- Should become:
<h4>Title Text</h4>
>>>
 
<<<
#### Title Text #
--- Should become:
<h4>Title Text</h4>
>>>
 
<<<
#### Title Text ###
--- Should become:
<h4>Title Text</h4>
>>>
 
<<<
#### Title Text #####
--- Should become:
<h4>Title Text</h4>
>>>
 
# ATX-style h5
<<<
##### Title Text
--- Should become:
<h5>Title Text</h5>
>>>
 
<<<
##### Title Text #
--- Should become:
<h5>Title Text</h5>
>>>
 
<<<
##### Title Text ###
--- Should become:
<h5>Title Text</h5>
>>>
 
<<<
##### Title Text #####
--- Should become:
<h5>Title Text</h5>
>>>
 
# ATX-style h6
<<<
###### Title Text
--- Should become:
<h6>Title Text</h6>
>>>
 
<<<
###### Title Text #
--- Should become:
<h6>Title Text</h6>
>>>
 
<<<
###### Title Text ###
--- Should become:
<h6>Title Text</h6>
>>>
 
<<<
###### Title Text #####
--- Should become:
<h6>Title Text</h6>
>>>
 
 
### [Blockquotes]
 
# Regular 1-level blockquotes
<<<
> Email-style angle brackets
> are used for blockquotes.
--- Should become:
<blockquote>
<p>Email-style angle brackets
are used for blockquotes.</p>
</blockquote>
>>>
 
# Doubled blockquotes
<<<
> > And, they can be nested.
--- Should become:
<blockquote>
<blockquote>
<p>And, they can be nested.</p>
</blockquote>
</blockquote>
>>>
 
# Nested blockquotes
<<<
> Email-style angle brackets
> are used for blockquotes.
 
> > And, they can be nested.
--- Should become:
<blockquote>
<p>Email-style angle brackets
are used for blockquotes.</p>
<blockquote>
<p>And, they can be nested.</p>
</blockquote>
</blockquote>
>>>
 
# Lazy blockquotes
<<<
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
 
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
--- Should become:
<blockquote>
<p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
<p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.</p>
</blockquote>
>>>
 
 
# Blockquotes containing other markdown elements
<<<
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");
--- Should become:
<blockquote>
<h2>This is a header.</h2>
<ol>
<li>This is the first list item.</li>
<li>This is the second list item.</li>
</ol>
<p>Here's some example code:</p>
<pre><code>return shell_exec("echo $input | $markdown_script");
</code></pre>
</blockquote>
>>>
 
 
### [Images]
 
# Inline image with title
<<<
![alt text](/path/img.jpg "Title")
--- Should become:
<p><img src="/path/img.jpg" alt="alt text" title="Title"/></p>
>>>
 
# Reference image
<<<
![alt text][id]
 
[id]: /url/to/img.jpg "Title"
--- Should become:
<p><img src="/url/to/img.jpg" alt="alt text" title="Title"/></p>
>>>
 
 
### [Emphasis]
 
# Emphasis (<em>) with asterisks
<<<
Use *single splats* for emphasis.
--- Should become:
<p>Use <em>single splats</em> for emphasis.</p>
>>>
 
# Emphasis (<em>) with underscores
<<<
Use *underscores* for emphasis.
--- Should become:
<p>Use <em>underscores</em> for emphasis.</p>
>>>
 
# Strong emphasis (<strong>) with asterisks
<<<
Use **double splats** for more emphasis.
--- Should become:
<p>Use <strong>double splats</strong> for more emphasis.</p>
>>>
 
# Strong emphasis (<strong>) with underscores
<<<
Use __doubled underscores__ for more emphasis.
--- Should become:
<p>Use <strong>doubled underscores</strong> for more emphasis.</p>
>>>
 
# Combined emphasis types 1
<<<
Use *single splats* or _single unders_ for normal emphasis.
--- Should become:
<p>Use <em>single splats</em> or <em>single unders</em> for normal emphasis.</p>
>>>
 
# Combined emphasis types 2
<<<
Use _single unders_ for normal emphasis
or __double them__ for strong emphasis.
--- Should become:
<p>Use <em>single unders</em> for normal emphasis
or <strong>double them</strong> for strong emphasis.</p>
>>>
 
# Emphasis containing escaped metachars
<<<
You can include literal *\*splats\** by escaping them.
--- Should become:
<p>You can include literal <em>*splats*</em> by escaping them.</p>
>>>
 
 
### [Links]
 
# Inline link, no title
<<<
An [example](http://url.com/).
--- Should become:
<p>An <a href="http://url.com/">example</a>.</p>
>>>
 
# Inline link with title
<<<
An [example](http://url.com/ "Check out url.com!").
--- Should become:
<p>An <a href="http://url.com/" title="Check out url.com!">example</a>.</p>
>>>
 
# Reference-style link, no title
<<<
An [example][ex] reference-style link.
 
[ex]: http://www.bluefi.com/
--- Should become:
<p>An <a href="http://www.bluefi.com/">example</a> reference-style link.</p>
>>>
 
# Reference-style link with quoted title
<<<
An [example][ex] reference-style link.
 
[ex]: http://www.bluefi.com/ "Check out our air."
--- Should become:
<p>An <a href="http://www.bluefi.com/" title="Check out our air.">example</a> reference-style link.</p>
>>>
 
# Reference-style link with paren title
<<<
An [example][ex] reference-style link.
 
[ex]: http://www.bluefi.com/ (Check out our air.)
--- Should become:
<p>An <a href="http://www.bluefi.com/" title="Check out our air.">example</a> reference-style link.</p>
>>>
 
# Reference-style link with one of each (hehe)
<<<
An [example][ex] reference-style link.
 
[ex]: http://www.bluefi.com/ "Check out our air.)
--- Should become:
<p>An <a href="http://www.bluefi.com/" title="Check out our air.">example</a> reference-style link.</p>
>>>
 
" <- For syntax highlighting
 
# Reference-style link with intervening space
<<<
You can split the [linked part] [ex] from
the reference part with a single space.
 
[ex]: http://www.treefrog.com/ "for some reason"
--- Should become:
<p>You can split the <a href="http://www.treefrog.com/" title="for some reason">linked part</a> from
the reference part with a single space.</p>
>>>
 
# Reference-style link with intervening space
<<<
You can split the [linked part]
[ex] from the reference part
with a newline in case your editor wraps it there, I guess.
 
[ex]: http://www.treefrog.com/
--- Should become:
<p>You can split the <a href="http://www.treefrog.com/">linked part</a> from the reference part
with a newline in case your editor wraps it there, I guess.</p>
>>>
 
# Reference-style anchors
<<<
I get 10 times more traffic from [Google] [1] than from
[Yahoo] [2] or [MSN] [3].
 
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
--- Should become:
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
>>>
 
# Implicit name-link shortcut anchors
<<<
I get 10 times more traffic from [Google][] than from
[Yahoo][] or [MSN][].
 
[google]: http://google.com/ "Google"
[yahoo]: http://search.yahoo.com/ "Yahoo Search"
[msn]: http://search.msn.com/ "MSN Search"
--- Should become:
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
<a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
>>>
 
# Inline anchors
<<<
I get 10 times more traffic from [Google](http://google.com/ "Google")
than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or
[MSN](http://search.msn.com/ "MSN Search").
--- Should become:
<p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a>
than from <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or
<a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
>>>
 
 
### [Auto-links]
 
# Plain HTTP link
<<<
This is a reference to <http://www.FaerieMUD.org/>. You should follow it.
--- Should become:
<p>This is a reference to <a href="http://www.FaerieMUD.org/">http://www.FaerieMUD.org/</a>. You should follow it.</p>
>>>
 
# FTP link
<<<
Why not download your very own chandelier from <ftp://ftp.usuc.edu/pub/foof/mir/>?
--- Should become:
<p>Why not download your very own chandelier from <a href="ftp://ftp.usuc.edu/pub/foof/mir/">ftp://ftp.usuc.edu/pub/foof/mir/</a>?</p>
>>>
 
 
### [Lists]
 
# Unordered list
<<<
* Red
* Green
* Blue
--- Should become:
<ul>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul>
>>>
 
# Ordered list
<<<
1. Bird
2. McHale
3. Parish
--- Should become:
<ol>
<li>Bird</li>
<li>McHale</li>
<li>Parish</li>
</ol>
>>>
 
# Ordered list, any numbers
<<<
1. Bird
1. McHale
1. Parish
--- Should become:
<ol>
<li>Bird</li>
<li>McHale</li>
<li>Parish</li>
</ol>
>>>