aboutsummaryrefslogtreecommitdiff
path: root/test/command/5178.md
blob: 57aace94595d1c1f6b767ec5742d433d139ce536 (plain)
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
```
% pandoc -f rst -t org
.. code:: haskell
   :number-lines: 42

   main = putStrLn "Hello World!"
   unsafePerformIO main
^D
#+BEGIN_SRC haskell -n 42
  main = putStrLn "Hello World!"
  unsafePerformIO main
#+END_SRC
```

```
% pandoc -f org -t native
#+BEGIN_SRC lisp -n 20
  (+ 1 1)
#+END_SRC

#+BEGIN_SRC lisp +n 10
  (+ 2 2)
#+END_SRC
^D
[CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n"
,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
```

```
% pandoc -f native -t org
[CodeBlock ("",["commonlisp","numberLines"],[("org-language","lisp"),("startFrom","20")]) "(+ 1 1)\n"
,CodeBlock ("",["commonlisp","numberLines","continuedSourceBlock"],[("org-language","lisp"),("startFrom","10")]) "(+ 2 2)\n"]
^D
#+BEGIN_SRC lisp -n 20
  (+ 1 1)
#+END_SRC

#+BEGIN_SRC lisp +n 10
  (+ 2 2)
#+END_SRC
```