Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to color text in Markdown/GitLab

I'm trying color text in markdown. In editor preview all looks good, but when I push it to a GitLab repository the text is not colored. How can I color text?

In his beard lived three <span style="color:red">cardinals</span>.

enter image description here

like image 786
Cesarz Avatar asked Aug 30 '25 17:08

Cesarz


1 Answers

You could try this it seems that Gitlab renders it pretty nice, hope it helps:

$`\textcolor{red}{\text{your text}}`$ 
$`\textcolor{blue}{\text{your text}}`$ 
$`\textcolor{green}{\text{your text}}`$ 

Also there's diff fence:

```diff
- RED text
+ GREEN text
! ORANGE text
# GRAY text
```

enter image description here

like image 141
dejanualex Avatar answered Sep 02 '25 22:09

dejanualex