Sometimes, We want to highlight the text content in markdown and visible to the user with a special color. By default, markdown does not support text highlight content.

There are multiple ways we can do it using HTML.

markdown text highlight using mark tag

mark tag in html5 supports highlight text.

<mark >Highlighted text</mark>

By default, It uses the default background color. and displays as Highlighted text

use CSS styles to change the background color

<mark style="background-color: #FFFF00">Highlighted text</mark>

And, Render as Highlighted text

Another way using any div or span tag style

<div style="background-color: #FFFF00">Highlighted text</div>

Render as

Highlighted text

Some parsers don’t support CSS inline styles, you can use app other approaches.

Some parsers support the following syntax

add double equal to before and after text content

==highlighted text==

It supports pandoc, typoro, and Quilt markdown editors.