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 now
pull/370/head
Shuhei Kadowaki 2020-06-13 22:10:09 +09:00
parent d468912332
commit d586c24792
2 changed files with 2 additions and 5 deletions

View File

@ -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,

View File

@ -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