Skip to content

Commit

Permalink
Merge pull request #40 from jverzani/plotlylight
Browse files Browse the repository at this point in the history
new version of PlotlyLight
  • Loading branch information
jverzani committed Oct 27, 2023
2 parents 887ac34 + 9f0ebf2 commit d2c3d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "QuizQuestions"
uuid = "612c44de-1021-4a21-84fb-7261cf5eb2d4"
authors = ["jverzani <jverzani@gmail.com> and contributors"]
version = "0.3.19"
version = "0.3.20"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand Down
4 changes: 2 additions & 2 deletions src/show_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = "<script>window.PlotlyConfig = {MathJaxConfig: 'local'};</script>\n" * FORM

(FORM, GRADING_SCRIPT)
Expand Down

2 comments on commit d2c3d4d

@jverzani
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/94254

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.20 -m "<description of version>" d2c3d4dadc8f5bf0403c7be17d602531af6fe9a7
git push origin v0.3.20

Please sign in to comment.