How to change the color of the text in Markdown?
- 30 Mar 2023
- 1 Minute à lire
- Contributeurs
- Impression
- SombreLumière
- PDF
How to change the color of the text in Markdown?
- Mis à jour le 30 Mar 2023
- 1 Minute à lire
- Contributeurs
- Impression
- SombreLumière
- PDF
The content is currently unavailable in French. You are viewing the default English version.
Article Summary
Share feedback
Thanks for sharing your feedback!
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
- Go to the desired article in the Knowledge base portal (Markdown editor)
- 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>
- Replace the 'Text content' with your desired text
- Replace the color with your desired color
The above sample code mentions the color as 'red'
Output
Text contentCet article vous a-t-il été utile ?