mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
ipynb writer: only include metadata under 'jupyter' field.
This commit is contained in:
@@ -81,7 +81,7 @@ pandocToNotebook opts (Pandoc meta blocks) = do
|
||||
let jupyterMeta =
|
||||
case lookupMeta "jupyter" meta of
|
||||
Just (MetaMap m) -> (Meta m <> B.deleteMeta "jupyter" meta)
|
||||
_ -> meta
|
||||
_ -> mempty
|
||||
metadata' <- metaToJSON' blockWriter inlineWriter $
|
||||
B.deleteMeta "nbformat" $
|
||||
B.deleteMeta "nbformat_minor" $ jupyterMeta
|
||||
|
||||
Reference in New Issue
Block a user