pull/387/merge
Robert Moss 2023-03-21 13:42:40 +08:00 committed by GitHub
commit 53b7fd296a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ const _DEFAULT_PARAMS = Dict{Symbol,Any}(
:fig_env => nothing,
:out_width => nothing,
:out_height => nothing,
:print => false,
)
const DEFAULT_PARAMS = deepcopy(_DEFAULT_PARAMS) # might be changed at runtime

View File

@ -43,7 +43,11 @@ function Base.display(report::Report, data)
if !istextmime(m)
Base.invokelatest(display, report, m, data)
elseif report.cur_chunk.options[:term]
Base.invokelatest(display, report, "text/plain", data)
if report.cur_chunk.options[:print]
print(data)
else
Base.invokelatest(display, report, "text/plain", data)
end
else
Base.invokelatest(display, report, m, data)
end