Browse Source

fixes

pull/120/head
Fredrik Ekre 4 years ago
parent
commit
874b758e82
  1. 5
      src/Literate.jl

5
src/Literate.jl

@ -610,7 +610,7 @@ Generate a notebook from `inputfile` and write the result to `outputdir`.
See the manual section on [Configuration](@ref) for documentation See the manual section on [Configuration](@ref) for documentation
of possible configuration with `config` and other keyword arguments. of possible configuration with `config` and other keyword arguments.
""" """
function notebook(inputfile, outputdir=pwd(); config::Dict=Dict(), flavor=JupyterFlavor(), kwargs...) function notebook(inputfile, outputdir=pwd(); config::Dict=Dict(), kwargs...)
# preprocessing and parsing # preprocessing and parsing
chunks, config = chunks, config =
preprocessor(inputfile, outputdir; user_config=config, user_kwargs=kwargs, type=:nb) preprocessor(inputfile, outputdir; user_config=config, user_kwargs=kwargs, type=:nb)
@ -754,9 +754,10 @@ function create_notebook(::PlutoFlavor, chunks, config)
# Print header # Print header
write(ionb, """ write(ionb, """
### A Pluto.jl notebook ### ### A Pluto.jl notebook ###
# v0.11.0 # v0.16.0
using Markdown using Markdown
using InteractiveUtils
""") """)

Loading…
Cancel
Save