From 7b48a06c473009f79b218d0e41a0b41ecce8f392 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Tue, 2 Jun 2020 19:32:51 +0900 Subject: [PATCH] wip: --- Project.toml | 3 +++ src/plots.jl | 4 ++-- templates/md2html.tpl | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 7e71d2a5..4651c5b6 100644 --- a/Project.toml +++ b/Project.toml @@ -3,8 +3,11 @@ uuid = "44d3d7a6-8a23-5bf8-98c5-b353f8df5ec9" version = "0.10.2" [deps] +AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" +EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615" +Gumbo = "708ec375-b3d6-5a57-a7ce-8257bf98657a" Highlights = "eafb193a-b7ab-5a9e-9068-77385905fa72" InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" diff --git a/src/plots.jl b/src/plots.jl index 57fbd59b..805cb8c7 100644 --- a/src/plots.jl +++ b/src/plots.jl @@ -18,7 +18,7 @@ function Base.display( report::Weave.Report, m::MIME"image/svg+xml", data::Plots.Plot{Plots.PlotlyBackend}, -)# +) # Remove extra spaces from start of line for pandoc s = repr(MIME("text/html"), data) splitted = split(s, "\n") @@ -40,7 +40,7 @@ function Base.display( report::Weave.Report, m::MIME"image/png", data::Plots.Plot{Plots.PlotlyBackend}, -)# +) display(report, MIME("image/svg+xml"), data) end diff --git a/templates/md2html.tpl b/templates/md2html.tpl index 4f1fdcd0..517029c4 100644 --- a/templates/md2html.tpl +++ b/templates/md2html.tpl @@ -29,8 +29,8 @@
{{#:title}}

{{:title}}

{{/:title}} - {{#:author}}
{{{:author}}}
{{/:author}} - {{#:date}}
{{{:date}}}
{{/:date}} + {{#:author}}

{{{:author}}}

{{/:author}} + {{#:date}}

{{{:date}}}

{{/:date}}
{{{ :body }}}