mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 05:35:38 +00:00
Spans and Divs containing an ident in the Attr will become bookmarks or sections with idents in OpenDocument format.
12 lines
500 B
Markdown
12 lines
500 B
Markdown
```
|
|
%pandoc -f native -t opendocument
|
|
[Div ("divId",[],[])
|
|
[Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "div."]],
|
|
Para [Span ("spanId",[],[]) [Str "And",Space,Str "here",Space,Str "is",Space,Str "a",Space,Str "span."]]]
|
|
^D
|
|
<text:section text:name="divId"><text:p text:style-name="Text_20_body">Here
|
|
is a div.</text:p></text:section>
|
|
<text:p text:style-name="Text_20_body"><text:bookmark-start text:name="spanId" />And
|
|
here is a span.<text:bookmark-end text:name="spanId" /></text:p>
|
|
```
|