aboutsummaryrefslogtreecommitdiff
path: root/test/command/11188.md
blob: a982b2dff09c3921f6ac0707fff72eb76bb4897f (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
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
Parsing PARAMETERS of Org-mode blocks

```
% pandoc -f org --to=native
#+attr_html: :width 10px
#+BEGIN_myex :this that
huhu
#+END_myex
^D
[ Div
    ( ""
    , [ "myex" ]
    , [ ( "width" , "10px" ) , ( "this" , "that" ) ]
    )
    [ Para [ Str "huhu" ] ]
]
```

Python-style parameters are accepted, too.

```
% pandoc -f org --to=native
#+BEGIN_myblock width=10px
[[image.svg][logo]]
#+END_myblock
^D
[ Div
    ( "" , [ "myblock" ] , [ ( "width" , "10px" ) ] )
    [ Para
        [ Span
            ( ""
            , [ "spurious-link" ]
            , [ ( "target" , "image.svg" ) ]
            )
            [ Emph [ Str "logo" ] ]
        ]
    ]
]
```

The fallback is to put the remainder of the line into a `parameters`
attribute.

```
% pandoc -f org --to=native
#+BEGIN_myblock these are parameters in an unsupported format
/OK/
#+END_myblock
^D
[ Div
    ( ""
    , [ "myblock" ]
    , [ ( "parameters"
        , "these are parameters in an unsupported format"
        )
      ]
    )
    [ Para [ Emph [ Str "OK" ] ] ]
]
```

Also works on dynamic blocks.

```
% pandoc -f org --to=markdown
#+BEGIN: clocktable :scope subtree :maxlevel 3
#+CAPTION: Clock summary at [2025-10-18 Sat 17:23]
| Headline     | Time   |
|--------------+--------|
| *Total time* | *0:00* |
#+END:
^D
::: {.clocktable scope="subtree" maxlevel="3"}
  Headline         Time
  ---------------- ----------
  **Total time**   **0:00**

  : Clock summary at \[2025-10-18 Sat 17:23\]
:::
```