diff --git a/Project.toml b/Project.toml index a79db2e..0140be1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "QuizQuestions" uuid = "612c44de-1021-4a21-84fb-7261cf5eb2d4" authors = ["jverzani and contributors"] -version = "0.3.19" +version = "0.3.20" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/src/show_methods.jl b/src/show_methods.jl index 305532c..2379392 100644 --- a/src/show_methods.jl +++ b/src/show_methods.jl @@ -300,7 +300,7 @@ end handle_inf(x) = x == Inf ? "Infinity" : x == -Inf ? "-Infinity" : x function prepare_question(x::PlotlyLightQ, ID) p = x.p - p.id = ID +# p.id = ID x₀, x₁ = handle_inf.(x.xs) y₀, y₁ = handle_inf.(x.ys) @@ -317,7 +317,7 @@ function prepare_question(x::PlotlyLightQ, ID) CORRECT = "Correct" ) - FORM = sprint(io -> show(io, "text/html", p)) + FORM = sprint(io -> show(io, MIME("text/html"), p, id=ID)) FORM = "\n" * FORM (FORM, GRADING_SCRIPT)