diff --git a/REQUIRE b/REQUIRE index 9dde7fa..2d83700 100644 --- a/REQUIRE +++ b/REQUIRE @@ -6,4 +6,4 @@ Highlights Mustache Documenter YAML -Compat 0.17.0 \ No newline at end of file +Compat 0.25.0 diff --git a/src/gadfly.jl b/src/gadfly.jl index 8f2db32..dfcdf43 100644 --- a/src/gadfly.jl +++ b/src/gadfly.jl @@ -2,6 +2,10 @@ import Gadfly Gadfly.set_default_plot_format(:svg) +function Base.display(report::Report, m::MIME"image/png", p::Gadfly.Plot) + display(report, MIME("image/svg+xml"), p) +end + #Gadfly doesn't call the default display methods, this catches #all Gadfly plots function Base.display(report::Report, m::MIME"image/svg+xml", p::Gadfly.Plot) diff --git a/test/documents/test_hold_ref.md b/test/documents/test_hold_ref.md index abb20fc..e2b0d13 100644 --- a/test/documents/test_hold_ref.md +++ b/test/documents/test_hold_ref.md @@ -52,6 +52,7 @@ julia> x = 1:10 1:10 julia> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~ @@ -63,6 +64,7 @@ julia> plot(x = x, y = x) julia> print(x) 1:10 julia> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~ @@ -89,6 +91,7 @@ julietta> x = 1:10 1:10 julietta> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~ @@ -100,6 +103,7 @@ julietta> plot(x = x, y = x) julietta> print(x) 1:10 julietta> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~ @@ -180,6 +184,7 @@ julia> x = 1:10 1:10 julia> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~ @@ -191,6 +196,7 @@ julia> plot(x = x, y = x) julia> print(x) 1:10 julia> plot(x = x, y = x) +Plot(...) ~~~~~~~~~~~~~