mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
@@ -660,8 +660,12 @@ inlineToOpenDocument o ils
|
||||
, ("xlink:show" , "embed" )
|
||||
, ("xlink:actuate", "onLoad")]
|
||||
mkSpan attr xs = do
|
||||
let (ident,_,_) = attr
|
||||
i = withLangFromAttr attr (inlinesToOpenDocument o xs)
|
||||
let (ident,_,kvs) = attr
|
||||
i = maybe id (\sty ->
|
||||
fmap (inTags False "text:span"
|
||||
[ ("text:style-name", sty) ]))
|
||||
(lookup "custom-style" kvs) .
|
||||
withLangFromAttr attr $ inlinesToOpenDocument o xs
|
||||
mkBookmarkedSpan b =
|
||||
if isEmpty b
|
||||
then selfClosingBookmark ident
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
```
|
||||
% pandoc -t opendocument
|
||||
[Text here]{custom-style="Strikethrough"}
|
||||
^D
|
||||
<text:p text:style-name="Text_20_body"><text:span text:style-name="Strikethrough">Text
|
||||
here</text:span></text:p>
|
||||
```
|
||||
Reference in New Issue
Block a user