Skip to content

Commit

Permalink
Ipynb reader: fix duplication of 'source' attribute.
Browse files Browse the repository at this point in the history
See #5408.
  • Loading branch information
jgm committed Jul 18, 2020
1 parent bfb3bc0 commit 2b54a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/Ipynb.hs
Expand Up @@ -79,7 +79,7 @@ cellToBlocks opts lang c = do
case cellType c of
Ipynb.Markdown -> do
Pandoc _ bs <- walk fixImage <$> readMarkdown opts source
let kvs' = ("source", source) : kvs
let kvs' = ("source", source) : [(k,v) | (k,v) <- kvs, k /= "source"]
return $ B.divWith ("",["cell","markdown"],kvs')
$ B.fromList bs
Ipynb.Heading lev -> do
Expand Down

0 comments on commit 2b54a5d

Please sign in to comment.