Skip to content

Commit

Permalink
Merge pull request #44 from jverzani/units
Browse files Browse the repository at this point in the history
process units strings
  • Loading branch information
jverzani committed Oct 31, 2023
2 parents bd13173 + 0a9c4e1 commit da5b196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/src/quarto-example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jupyter: julia-1.9
```{julia}
#| echo: false
using QuizQuestions
using LaTeXStrings
using Plots
```

Expand All @@ -19,7 +18,7 @@ $$

```{julia}
#| echo: false
buttonq([L"1 + 1", L"2+2", L"-1 + -1"], 1;
buttonq(["1 + 1", L"2+2", L"-1 + -1"], 1;
label = L"Which adds to $2$?",
explanation="Add 'em up")
```
Expand Down
2 changes: 1 addition & 1 deletion src/show_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function prepare_question(x::Numericq, ID)
FORM = Mustache.render(html_templates["inputq_form"];
ID=ID,
PLACEHOLDER = isnothing(x.placeholder) ? "Numeric answer" : x.placeholder,
UNITS=x.units,
UNITS=_markdown_to_html(x.units),
TYPE="number",
HINT = length(x.label) == 0 ? x.hint : ""
)
Expand Down

2 comments on commit da5b196

@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 updated: JuliaRegistries/General/94307

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.21 -m "<description of version>" da5b196e898dec6a9f03b52aa54ecc7340235091
git push origin v0.3.21

Please sign in to comment.