Colored Markdown "notes" in Pluto #857
-
Is there any way to create colored Markdown "tips" or "notes", as shown in Julia's Markdown Documentation? I think I've seen some Pluto notebooks on course channels on YouTube (mainly MIT courses), but I'm not sure how to do this. When I write md"""
!!! note
Note text goes here.
""" I see a colored Markdown section with the header "note", but "Note text goes here" is printed below the section. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
"""
|
Beta Was this translation helpful? Give feedback.
Hey @cadojo! Yep, here are some of the popular ones from the MIT course that you can play around with:
I think the one you posted just needs a tab to be displayed properly: