How to change the color of the text in Markdown?
  • 03 Aug 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to change the color of the text in Markdown?

  • Dark
    Light
  • PDF

You would want to change the text color of certain 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
  2. Paste the below code in the desired location where you want the text to appear
<span style="color:red">
Text_content
</style>
  1. Replace the 'Text_content' with your desired text
  2. Replace the color with your desired color

In the above sample code, color is mentioned as red.

  1. The output would be as below

    Text_content

Was this article helpful?