pandoc/test/command/6755.md
Nils Carlson 75c881e2d9
OpenDocument Writer: Implement Div and Span ident support (#6755)
Spans and Divs containing an ident in the Attr will become bookmarks
or sections with idents in OpenDocument format.
2020-11-22 22:23:30 -08:00

11 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>
```