From c59aebd84e7cf89118f6b87830de365f3f5b905a Mon Sep 17 00:00:00 2001 From: Camilo De La Torre <64303300+camilodlt@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:07:23 +0200 Subject: [PATCH] Update styled_text.md (#244) I think [] is the old notation, the new one is {}. --- docs/src/basics/styled_text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/basics/styled_text.md b/docs/src/basics/styled_text.md index 20a93e17..8a3c8eec 100644 --- a/docs/src/basics/styled_text.md +++ b/docs/src/basics/styled_text.md @@ -86,7 +86,7 @@ that's right, `Term.jl` can also color the background of your text (by adding `o !!! info "Where did my brackets go!?!?" Perhaps you've tried something like `tprint("This is {my} text")` and got surprised when the output was `"This is text"`. If so, read on. What happened there is that `Term.jl` interprets anything with single squared parentheses (`{...}`) as style information - and removes that from your text output. So in the example it treated `{my}` as a markup style tag and removed it from the text, but `my` is not a valid style so it was ultimately ignored. If you want to use `[]` in your text, you simply need to use double brackets: `tprint("This is {{my}} text")` will print `"This is {my} text"` as expected. + and removes that from your text output. So in the example it treated `{my}` as a markup style tag and removed it from the text, but `my` is not a valid style so it was ultimately ignored. If you want to use `{}` in your text, you simply need to use double brackets: `tprint("This is {{my}} text")` will print `"This is {my} text"` as expected. If you just want to **use** `Term.jl`'s style functionality, just make sure to read the admonition below. If you're curious about what's happening under the hood, read on below!