diff --git a/src/format.jl b/src/format.jl index 090fbee..0f0c23a 100644 --- a/src/format.jl +++ b/src/format.jl @@ -13,7 +13,6 @@ function format(doc) get!(formatdict, :fig_pos, nothing) get!(formatdict, :fig_env, nothing) - formatdict[:cwd] = doc.cwd # pass wd to figure formatters formatdict[:theme] = doc.highlight_theme restore_header!(doc) diff --git a/src/reader/reader.jl b/src/reader/reader.jl index f13ac31..c6dadde 100644 --- a/src/reader/reader.jl +++ b/src/reader/reader.jl @@ -39,7 +39,6 @@ function WeaveDoc(source, informat = nothing) "", "", Highlights.Themes.DefaultTheme, - "", chunk_defaults, ) end diff --git a/src/run.jl b/src/run.jl index 92218c9..54f91d4 100644 --- a/src/run.jl +++ b/src/run.jl @@ -58,7 +58,6 @@ function run_doc( # This is needed for latex and should work on all output formats @static Sys.iswindows() && (fig_path = replace(fig_path, "\\" => "/")) - doc.fig_path = fig_path set_rc_params(doc, fig_path, fig_ext) # New sandbox for each document with args exposed diff --git a/src/types.jl b/src/types.jl index d6373fc..03d0286 100644 --- a/src/types.jl +++ b/src/types.jl @@ -15,7 +15,6 @@ mutable struct WeaveDoc template::Union{AbstractString,Mustache.MustacheTokens} css::AbstractString highlight_theme::Type{<:Highlights.AbstractTheme} - fig_path::AbstractString chunk_defaults::Dict{Symbol,Any} end