diff --git a/src/config.jl b/src/config.jl index aeb87a6..7182903 100644 --- a/src/config.jl +++ b/src/config.jl @@ -34,6 +34,7 @@ const defaultParams = :fig_env=> nothing, :out_width=> nothing, :out_height=> nothing, + :skip=>false ) ) #This one can be changed at runtime, initially a copy of defaults diff --git a/src/writers.jl b/src/writers.jl index 956c32c..2b215a1 100644 --- a/src/writers.jl +++ b/src/writers.jl @@ -89,12 +89,15 @@ function convert_doc(doc::WeaveDoc, format::NotebookOutput) end for chunk in doc.chunks + if isa(chunk, DocChunk) push!(cells, Dict("cell_type" => "markdown", "metadata" => Dict(), "source" => [strip(join([repr(c) for c in chunk.content], ""))]) ) + elseif haskey(chunk.options, :skip) && chunk.options[:skip] == "notebook" + continue else push!(cells, Dict("cell_type" => "code",