git.iko.soy/typeable/pandoc
on master help sign in
Shared.filterIpynbOutput: 'best' should include everything for ipynb.
707eef3John MacFarlane
src/Text/Pandoc/Shared.hs+5−1
@@ -679,7 +679,11 @@ filterIpynbOutput mode = walk go
679 where go (Div (ident, ("output":os), kvs) bs) =
679 where go (Div (ident, ("output":os), kvs) bs) =
680 case mode of
680 case mode of
681 Nothing -> Div (ident, ("output":os), kvs) []
681 Nothing -> 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
682− Just fmt -> Div (ident, ("output":os), kvs) $
686+ | otherwise -> Div (ident, ("output":os), kvs) $
683 take 1 $ sortBy (comparing rank) bs
687 take 1 $ sortBy (comparing rank) bs
684 where
688 where
685 rank (RawBlock (Format "html") _)
689 rank (RawBlock (Format "html") _)