diff --git a/src/Literate.jl b/src/Literate.jl index 94e3060..3f7ddf1 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -514,9 +514,9 @@ function notebook(inputfile, outputdir; config::Dict=Dict(), kwargs...) cell["cell_type"] = chunktype cell["metadata"] = metadata cell["source"] = lines - cell["outputs"] = [] if chunktype == "code" cell["execution_count"] = nothing + cell["outputs"] = [] end push!(cells, cell) end