diff --git a/Project.toml b/Project.toml index 2b041cd..0bea56c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,15 +1,15 @@ name = "StippleLatex" uuid = "8706c442-30ce-4f68-b407-b81ebf148be9" authors = ["Adrian Salceanu "] -version = "0.7.0" +version = "0.8.0" [deps] Genie = "c43c736e-a2d1-11e8-161f-af95117fbd1e" Stipple = "4acbeb90-81a0-11ea-1966-bdaff8155998" [compat] -Genie = "4" -Stipple = "0.17, 0.18, 0.19, 0.20" +Genie = "5" +Stipple = "0.25" julia = "1.6" [extras] diff --git a/src/StippleLatex.jl b/src/StippleLatex.jl index d6659a2..430e78a 100644 --- a/src/StippleLatex.jl +++ b/src/StippleLatex.jl @@ -11,7 +11,7 @@ const COMPONENTS = ["'vue-katex'" => :vueKatex] #===# -function deps() :: String +function deps() :: Vector{String} Genie.Router.route("/js/stipplekatex/katex.min.css") do Genie.Renderer.WebRenderable( read(joinpath(@__DIR__, "..", "files", "katex.min.css"), String), @@ -44,18 +44,18 @@ function deps() :: String :fontwoff2) |> Genie.Renderer.respond end - string( + [ Genie.Renderer.Html.script(src="$(Genie.config.base_path)js/stipplekatex/katex.min.js"), Genie.Renderer.Html.script(src="$(Genie.config.base_path)js/stipplekatex/auto-render.min.js", onload="renderMathInElement(document.body);"), Genie.Renderer.Html.script(src="$(Genie.config.base_path)js/stipplekatex/vue-katex.min.js", defer=true), Genie.Renderer.Html.link(href="$(Genie.config.base_path)js/stipplekatex/katex.min.css", rel="stylesheet"), - ) + ] end #===# function __init__() - Stipple.DEPS[@__MODULE__] = deps + Stipple.deps!(@__MODULE__, deps) end #===#