File: code-lists.html

package info (click to toggle)
ruby-org 0.9.12-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,852 kB
  • sloc: ruby: 3,044; lisp: 50; makefile: 4
file content (118 lines) | stat: -rw-r--r-- 2,154 bytes parent folder | download | duplicates (3)
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
<h1>normal list should work</h1>
<ul>
  <li>one
    text in the same line
    <p>This is a paragraph</p>
    <ul>
      <li>A sublist
        <ul>
          <li>Another sublist
            <p>Sublist paragraph</p>
          </li>
        </ul>
      </li>
      <li>2nd sublist
        <ul>
          <li>2nd sublist item
            <p>Paragraph from 2nd sublist</p>
          </li>
        </ul>
      </li>
    </ul>
  </li>
  <li>two
    <ol>
      <li>a new list
        <p>paragraph</p>
      </li>
      <li>another sublist</li>
    </ol>
  </li>
  <li>final list</li>
</ul>
<h1>paragraphs in lists should work</h1>
<ul>
  <li>Foo
    <ul>
      <li>How does this work?
        <p>uno dos tres</p>
      </li>
      <li>Should not this be a paragraph?</li>
    </ul>
  </li>
  <li>Bar</li>
</ul>
<h1>begin example in lists should work</h1>
<ul>
  <li>Foo
    <blockquote class="example">
class Hello
  def say
    puts &#39;cheers&#39;
  end
end
    </blockquote>
  </li>
  <li>Bar
    <blockquote class="example">
This gets lumped in to the above line &quot;Example&quot;
    </blockquote>
  </li>
  <li>Hello</li>
</ul>
<h1>begin quote in lists should work</h1>
<ul>
  <li>Example
    <ul>
      <li>Uno
        Lorem
        <pre>
          <p>A quote!!!</p>
        </pre>
        <p>dolor</p>
      </li>
      <li>Dos</li>
    </ul>
  </li>
</ul>
<h1>tables in lists should work</h1>
<ul>
  <li>Example
    <ul>
      <li>Table
        <p>This table:</p>
        <table>
          <tr><td>a</td><td>b</td></tr>
          <tr><td>0</td><td>1</td></tr>
          <tr><td>1</td><td>2</td></tr>
        </table>
      </li>
    </ul>
  </li>
  <li>After the table
    <p>The table should be above</p>
  </li>
</ul>
<h1>definition lists should work</h1>
<ul>
  <li>Example
    <dl>
      <dt>Hello</dt><dd>Hola
        Paragrap continues here
        <pre>
          <p>Cuando me desperte, el dinosaurio estaba alli.</p>
        </pre>
      </dd>
      <dt>Dog</dt><dd>Perro
        Paragraph</dd>
    </dl>
    <ul>
      <li>Last sublist</li>
    </ul>
  </li>
  <li>Another list
    <ul>
      <li>with a sublist</li>
    </ul>
  </li>
</ul>