aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-24 16:33:03 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-24 16:33:03 -0800
commit7167330a2a858fcfed313443a021aee90b13b8cc (patch)
tree619b82d529106dc6144ac339ccb524f3b687c6a6 /src/Text/Pandoc/Writers
parentb08c8627d30fdaf991fdff1fd7f3d674b356a976 (diff)
downloadpandoc-7167330a2a858fcfed313443a021aee90b13b8cc.tar.gz
Revert "Prepend `jupyter_` to jupyter metadata keys."
This reverts commit 5eaff399d5d6dc30b0d453eff42c4101674d75ab.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/Ipynb.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Writers/Ipynb.hs b/src/Text/Pandoc/Writers/Ipynb.hs
index 257edc613..c9d71e180 100644
--- a/src/Text/Pandoc/Writers/Ipynb.hs
+++ b/src/Text/Pandoc/Writers/Ipynb.hs
@@ -38,7 +38,6 @@ import Prelude
import Control.Monad.State
import qualified Data.Map as M
import Data.Maybe (catMaybes, fromMaybe)
-import Data.List (isPrefixOf)
import Text.Pandoc.Options
import Text.Pandoc.Definition
import Data.Ipynb as Ipynb
@@ -79,11 +78,6 @@ pandocToNotebook opts (Pandoc meta blocks) = do
let inlineWriter ils = T.stripEnd <$> writeMarkdown
opts{ writerTemplate = Nothing } (Pandoc nullMeta [Plain ils])
metadata' <- metaToJSON' blockWriter inlineWriter $
- (Meta .
- M.mapKeys (\k -> if "jupyter_" `isPrefixOf` k
- then drop 8 k
- else k) .
- unMeta) $
B.deleteMeta "nbformat" $
B.deleteMeta "nbformat_minor" $ meta
let metadata = case fromJSON metadata' of