mirror of https://github.com/mpastell/Weave.jl
clean up:
- unused `:display` chunk option - rm `displayed` chunk field - rm `cur_result`, `pendind_code`, `term_state` `Report` field - rm `:skip` config option - rm unfunctional `include` chunk option for nowpull/370/head
parent
d468912332
commit
d586c24792
|
@ -1,9 +1,9 @@
|
|||
# TODO: follow RMarkdown convention more
|
||||
const _DEFAULT_PARAMS = Dict{Symbol,Any}(
|
||||
:echo => true,
|
||||
:results => "markup",
|
||||
:hold => false,
|
||||
:fig => true,
|
||||
:include => true,
|
||||
:eval => true,
|
||||
:tangle => true,
|
||||
:cache => false,
|
||||
|
@ -18,7 +18,6 @@ const _DEFAULT_PARAMS = Dict{Symbol,Any}(
|
|||
:label => nothing,
|
||||
:wrap => true,
|
||||
:line_width => 75,
|
||||
:engine => "julia",
|
||||
:fig_ext => nothing,
|
||||
:fig_pos => nothing,
|
||||
:fig_env => nothing,
|
||||
|
|
|
@ -91,9 +91,7 @@ function format_chunk(chunk::CodeChunk, docformat)
|
|||
|
||||
# Handle figures
|
||||
if chunk.options[:fig] && length(chunk.figures) > 0
|
||||
if chunk.options[:include]
|
||||
result *= formatfigures(chunk, docformat)
|
||||
end
|
||||
result *= formatfigures(chunk, docformat)
|
||||
end
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue