Skip to content

Commit aba6766

Browse files
authored
Color todo admonitions in the REPL (JuliaLang#54957)
This patch adds magenta coloring for `!!! todo` admonitions in addition to the existing styling of `danger`, `warning`, `info`, `note`, `tip`, and `compat` admonitions. This is useful if you want to leave some more colorful todo notes in docstrings, for example. Accompanying PR for Documenter to render these in HTML and PDF docs: JuliaDocs/Documenter.jl#2526.
1 parent 2a8bdd0 commit aba6766

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/Markdown/src/render/terminal/render.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function term(io::IO, md::Admonition, columns)
3939
Symbol(md.category)
4040
elseif md.category == "compat"
4141
:bright_cyan
42+
elseif md.category == "todo"
43+
:magenta
4244
else
4345
:default
4446
end

0 commit comments

Comments
 (0)