Skip to content

Colored Markdown "notes" in Pluto #857

Discussion options

You must be logged in to vote

Hey @cadojo! Yep, here are some of the popular ones from the MIT course that you can play around with:

hint(text) = Markdown.MD(Markdown.Admonition("hint", "Hint", [text]))
keep_working(text=md"The answer is not quite right.") = Markdown.MD(Markdown.Admonition("danger", "Keep working on it!", [text]))
almost(text) = Markdown.MD(Markdown.Admonition("warning", "Almost there!", [text]))
correct(text=rand(yays)) = Markdown.MD(Markdown.Admonition("correct", "Got it!", [text]))

I think the one you posted just needs a tab to be displayed properly:

md"""
!!! note
    Note text goes here.
"""

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cadojo
Comment options

Answer selected by cadojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants