mirror of https://github.com/mpastell/Weave.jl
rm Compat
parent
62ae84d32d
commit
6339303569
|
@ -4,7 +4,6 @@ version = "0.9.3"
|
|||
|
||||
[deps]
|
||||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
|
||||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
Highlights = "eafb193a-b7ab-5a9e-9068-77385905fa72"
|
||||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
|
||||
|
@ -17,7 +16,6 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
|
|||
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"
|
||||
|
||||
[compat]
|
||||
Compat = "2, 3"
|
||||
Highlights = "0.3.1, 0.4"
|
||||
JSON = "0.21"
|
||||
Mustache = "0.4.1, 0.5, 1"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
module Weave
|
||||
import Highlights
|
||||
using Compat
|
||||
using Requires
|
||||
|
||||
function __init__()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
using Compat
|
||||
import Mustache
|
||||
|
||||
abstract type WeaveChunk end
|
||||
|
@ -82,11 +81,8 @@ mutable struct InlineCode <: Inline
|
|||
end
|
||||
end
|
||||
|
||||
mutable struct TermResult
|
||||
end
|
||||
mutable struct TermResult end
|
||||
|
||||
mutable struct ScriptResult
|
||||
end
|
||||
mutable struct ScriptResult end
|
||||
|
||||
mutable struct CollectResult
|
||||
end
|
||||
mutable struct CollectResult end
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
using Compat
|
||||
using Markdown
|
||||
import .WeaveMarkdown
|
||||
|
||||
|
@ -50,11 +49,11 @@ function Base.display(report::Report, data)
|
|||
if Base.invokelatest(showable, m, data)
|
||||
try
|
||||
if !istextmime(m)
|
||||
Compat.invokelatest(display, report, m, data)
|
||||
Base.invokelatest(display, report, m, data)
|
||||
elseif report.cur_chunk.options[:term]
|
||||
Compat.invokelatest(display, report, "text/plain", data)
|
||||
Base.invokelatest(display, report, "text/plain", data)
|
||||
else
|
||||
Compat.invokelatest(display, report, m, data)
|
||||
Base.invokelatest(display, report, m, data)
|
||||
end
|
||||
catch e
|
||||
throw(e)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Mustache, Highlights
|
||||
import .WeaveMarkdown
|
||||
using Compat
|
||||
using Dates
|
||||
using Markdown
|
||||
using REPL.REPLCompletions: latex_symbols
|
||||
|
|
|
@ -37,7 +37,7 @@ function Base.run(doc::WeaveDoc; doctype = :auto,
|
|||
if (haskey(doc.format.formatdict, :keep_unicode))
|
||||
doc.format.formatdict[:keep_unicode] = latex_keep_unicode
|
||||
end
|
||||
|
||||
|
||||
isdir(doc.cwd) || mkpath(doc.cwd)
|
||||
|
||||
if occursin("2pdf", doctype) && cache == :off
|
||||
|
@ -279,7 +279,7 @@ function eval_chunk(chunk::CodeChunk, report::Report, SandBox::Module)
|
|||
|
||||
#Run preexecute_hooks
|
||||
for hook in preexecute_hooks
|
||||
chunk = Compat.invokelatest(hook, chunk)
|
||||
chunk = Base.invokelatest(hook, chunk)
|
||||
end
|
||||
|
||||
report.fignum = 1
|
||||
|
@ -294,7 +294,7 @@ function eval_chunk(chunk::CodeChunk, report::Report, SandBox::Module)
|
|||
|
||||
#Run post_execute chunks
|
||||
for hook in postexecute_hooks
|
||||
chunk = Compat.invokelatest(hook, chunk)
|
||||
chunk = Base.invokelatest(hook, chunk)
|
||||
end
|
||||
|
||||
if chunk.options[:term]
|
||||
|
|
Loading…
Reference in New Issue