File: deflist.org

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 (72 lines) | stat: -rw-r--r-- 1,396 bytes parent folder | download | duplicates (5)
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
#+TITLE: Hallo

- a :: hello
- b :: world

Text

* Asterisk can be used for lists

 * One :: The first number.
 * Two :: The second number.
 * Three :: The second number.

* Corner cases of definition lists

The following examples show how org-ruby behave
when handling some cases of definition lists.
(Many thanks to [[https://github.com/vonavi][vonavi]] for his contributions here)

** Definition List Items

- Regular list
 + Key :: Value (k1)
 + Key :: Value (k2)
 + Key :: Value (k3)

- Semicolon as part of key
 - K::e::y :: Value (k1)
 - K::e::y :: Value (k2)

- Paragraph break after key
 + Key ::
   Value (k1)
 + Key ::
   Value (k2)

- Many semicolons in same line
 + Key :: Value :: Still value (k1)
 + Key :: Value :: Still value (k2)

- Semicolon placement cases
 + Case 1
  * Key ::MoreKey :: Value (k1)
 + Case 2
  * Key:: MoreKey :: Value (k2)
 + Case 3
  * :: Key :: Value (k3)

** Not Definition List Items

The following cases will not be considered as definition lists
but just regular lists.

 - Key:: Value (n1)
 - Key ::Value (n2)
 - Key::Value (n3)
 - Key::
   Value (n4)
 - Key
   :: Value (n5)

** Definition List Item without Definition

??? will be shown in this case

- Example list
 + Key :: Value :: Still value (k1)
   Paragraph :: with :: no value
 + Key :: Value :: Still value (k1) ::
   Paragraph :: with :: no value ::
 + ::
   Paragraph :: with :: no value