Ipynb writer: fixed carry-over of nbformat from metadata.
Previously we wrongly assumed it would be in a MetaString. It's an a MetaInlines.
This commit is contained in:
parent
9c7a57d648
commit
83ea529cf3
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ pandocToNotebook opts (Pandoc meta blocks) = do
|
|||
let nbformat =
|
||||
case (lookupMeta "nbformat" jupyterMeta,
|
||||
lookupMeta "nbformat_minor" jupyterMeta) of
|
||||
(Just (MetaString "4"), Just (MetaString y)) ->
|
||||
(Just (MetaInlines [Str "4"]), Just (MetaInlines [Str y])) ->
|
||||
case safeRead y of
|
||||
Just z -> (4, z)
|
||||
Nothing -> (4, 5)
|
||||
|
|
Loading…
Add table
Reference in a new issue