File: deflist.html

package info (click to toggle)
ruby-org 0.9.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: ruby: 3,044; lisp: 50; makefile: 4
file content (101 lines) | stat: -rw-r--r-- 2,834 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
<h1 class="title">Hallo</h1>
<dl>
  <dt>a</dt><dd>hello</dd>
  <dt>b</dt><dd>world</dd>
</dl>
<p>Text</p>
<h1>Asterisk can be used for lists</h1>
<dl>
  <dt>One</dt><dd>The first number.</dd>
  <dt>Two</dt><dd>The second number.</dd>
  <dt>Three</dt><dd>The second number.</dd>
</dl>
<h1>Corner cases of definition lists</h1>
<p>The following examples show how org-ruby behave
  when handling some cases of definition lists.
  (Many thanks to <a href="https://github.com/vonavi">vonavi</a> for his contributions here)</p>
<h2>Definition List Items</h2>
<ul>
  <li>Regular list
    <dl>
      <dt>Key</dt><dd>Value (k1)</dd>
      <dt>Key</dt><dd>Value (k2)</dd>
      <dt>Key</dt><dd>Value (k3)</dd>
    </dl>
  </li>
  <li>Semicolon as part of key
    <dl>
      <dt>K::e::y</dt><dd>Value (k1)</dd>
      <dt>K::e::y</dt><dd>Value (k2)</dd>
    </dl>
  </li>
  <li>Paragraph break after key
    <dl>
      <dt>Key</dt><dd>
        Value (k1)</dd>
      <dt>Key</dt><dd>
        Value (k2)</dd>
    </dl>
  </li>
  <li>Many semicolons in same line
    <dl>
      <dt>Key :: Value</dt><dd>Still value (k1)</dd>
      <dt>Key :: Value</dt><dd>Still value (k2)</dd>
    </dl>
  </li>
  <li>Semicolon placement cases
    <ul>
      <li>Case 1
        <dl>
          <dt>Key ::MoreKey</dt><dd>Value (k1)</dd>
        </dl>
      </li>
      <li>Case 2
        <dl>
          <dt>Key:: MoreKey</dt><dd>Value (k2)</dd>
        </dl>
      </li>
      <li>Case 3
        <dl>
          <dt>:: Key</dt><dd>Value (k3)</dd>
        </dl>
      </li>
    </ul>
  </li>
</ul>
<h2>Not Definition List Items</h2>
<p>The following cases will not be considered as definition lists
  but just regular lists.</p>
<ul>
  <li>Key:: Value (n1)</li>
  <li>Key ::Value (n2)</li>
  <li>Key::Value (n3)</li>
  <li>Key::
    Value (n4)</li>
  <li>Key
    :: Value (n5)</li>
</ul>
<h2>Definition List Item without Definition</h2>
<p>??? will be shown in this case</p>
<ul>
  <li>Example list
    <dl>
      <dt>Key :: Value</dt><dd>Still value (k1)
        Paragraph :: with :: no value</dd>
      <dt>Key :: Value :: Still value (k1)</dt><dd>
        Paragraph :: with :: no value ::</dd>
      <dt>???</dt><dd>
        Paragraph :: with :: no value</dd>
    </dl>
  </li>
</ul>
<h2>Definition List with markup inline</h2>
<dl>
  <dt>Description</dt><dd><b>bold</b></dd>
  <dt>Description</dt><dd><i>italic</i></dd>
  <dt>Description</dt><dd><code>code</code></dd>
  <dt>Description</dt><dd><code>verbatim</code></dd>
  <dt>Description</dt><dd><span style="text-decoration:underline;">underline</span></dd>
  <dt>Description</dt><dd><del>strikethrough</del></dd>
  <dt>More than 2 cases</dt><dd><b>bold</b>, <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</dd>
</dl>