git.iko.soy/typeable/pandoc
on master help sign in
Shared.filterIpynbOutput: 'best' should include everything for ipynb.
commit707eef34b74e64174ca0af3373a04176b7860f18 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 6 Mar 2019, 10:00 (8 years ago) parent186b50e
1 file changed+5−1
src/Text/Pandoc/Shared.hs+5−1
src/Text/Pandoc/Shared.hs+5−1
@@ -679,7 +679,11 @@ filterIpynbOutput mode = walk go
679679 where go (Div (ident, ("output":os), kvs) bs) =
680680 case mode of
681681 Nothing -> Div (ident, ("output":os), kvs) []
682− Just fmt -> Div (ident, ("output":os), kvs) $
682+ -- "best" for ipynb includes all formats:
683+ Just fmt
684+ | fmt == Format "ipynb"
685+ -> Div (ident, ("output":os), kvs) bs
686+ | otherwise -> Div (ident, ("output":os), kvs) $
683687 take 1 $ sortBy (comparing rank) bs
684688 where
685689 rank (RawBlock (Format "html") _)