How to change the color of the text in Markdown?
  • 30 Mar 2023
  • 1 Minute à lire
  • Contributeurs
  • Sombre
    Lumière
  • PDF

How to change the color of the text in Markdown?

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Article Summary

If you wish to change the text color of specific content in your articles, You can easily perform this action in the WYSIWYG editor with the 'Text color' option in the toolbar.

However, there is no option to change the text color in Markdown.

Follow the below workaround to change the text color in Markdown.


Solution

  1. Go to the desired article in the Knowledge base portal (Markdown editor)
  2. Paste the below code in the desired location where you want the text to appear in the article

Code

<span style="color:red">
Text content
</span>
  1. Replace the 'Text content' with your desired text
  2. Replace the color with your desired color

The above sample code mentions the color as 'red'

Output

Text content

Cet article vous a-t-il été utile ?