Highlighting Text in Markdown: ==Marks== vs the mark Tag
To highlight text in Markdown, wrap it in double equals signs, like ==this==, or use the HTML <mark> element. The first is short, but it only works in apps that add it. The second takes more typing and travels better. Which one you pick depends on where the file will end up.
Highlighting is not in the spec
CommonMark, the standard Markdown specification, has no highlight syntax. GitHub's Markdown has no native support either. Want a phrase to turn yellow? You're leaving the spec and relying on whatever your app adds on top. For the background on how that spec came to be, see how Markdown got a spec.
The == form was proposed in the CommonMark forum's Extensions category as a simpler alternative to MultiMarkdown's brace-and-equals syntax. Several people in the thread asked for it to become standard. The thread reports no decision from the maintainers, so treat == as a convention and not a rule.
Which apps understand ==text==
Here is the syntax in a note:
The deadline is ==Friday at noon==, not Monday.In a tool that supports it, "Friday at noon" gets a highlight. According to the forum thread, Typora and iA Writer support ==, and posters also named Obsidian and Quilt. Those are forum posts, though. Check how your own app behaves today.
A broader list from markdownlang.com says GitLab, VitePress and Hugo support it, and the markdown-it-mark plugin adds it to markdown-it. Jekyll varies by theme and plugins.
Pandoc supports it too, but not by default. It is a non-default extension called mark, which you turn on with markdown+mark.
If that sounds familiar, it is the same story as superscript and subscript: popular, handy, and not guaranteed. In a renderer without support, the equals signs usually show up as literal characters around your words. Nothing breaks, but the highlight is gone.
Why == is a risky marker
Double equals already means something elsewhere. The thread's participants pointed out that == is a comparison operator in many programming languages, so inline code written without code formatting could light up by accident. A triple-equals variant was floated to avoid that, but === is JavaScript's strict equality operator, and a progress-bar style like ===50%=== could also clash.
Two practical rules from the markdownlang.com guide:
- Don't put spaces between the
==and the text. - Combining
==with bold, links or other formatting can break rendering in some processors.
What the mark element means
The HTML <mark> element marks text for reference or notation because it is relevant in its context. MDN compares it to a highlighter pen on a book page, and says that outside quotations it flags content likely to be relevant to what the reader is doing right now, such as search matches.
Two things worth knowing:
- It signals relevance, not importance. For importance, MDN points to
<strong>. - It is not for syntax highlighting. MDN says to use a
<span>with CSS for that.
On the browser side there is no risk. MDN lists <mark> as Baseline widely available, working across browsers since July 2015. The risk is in the Markdown renderer. Some strip or escape inline HTML, in which case the tag shows as text. Others pass it through untouched.
In a note, it looks like this:
The deadline is <mark>Friday at noon</mark>, not Monday.What to do for portable files
A simple rule: if the file will move between apps, publish to a site, or be read by teammates in different tools, use <mark>. If it stays in one app you know supports ==, use == and enjoy the shorter syntax.
Mixed formatting is the case where the HTML form pays off. The markdownlang.com guide suggests putting bold or links inside a <mark> element when == combined with other formatting breaks. It is the same trade you meet with collapsible sections: inline HTML is longer to type but renders the same in more places.
Before you rely on either, write one test line in your editor and look at the preview. In Carets that takes a few seconds, and you'll see what its preview does with your chosen form. If neither renders, bold text is a fine plain fallback that every Markdown tool understands.
A quick way to choose
Ask three questions about the note you are writing:
- Will anyone open it in a different app, or will it be published to a website?
- Do you need bold, links or code-adjacent text inside the highlight?
- Do you know your editor's preview supports
==?
If the answer to the first two is yes, or to the third is no, write <mark>. If the note is private, short and lives in one editor that you have tested, == saves keystrokes and keeps the raw text easier to read. Either way, the highlight is only a visual cue, so keep the sentence readable without it: someone who sees the plain characters should still understand which phrase mattered.
Conclusion
Markdown has no official highlight, so you are choosing between a popular shortcut and a standard HTML element. ==text== is quick to type, but support depends on the app. <mark> is longer, well supported by browsers, and the safer choice for files that travel. Test one line, then commit to one form so your notes stay consistent.
Frequently Asked Questions
Does standard Markdown have a highlight syntax?
No. CommonMark has no highlight syntax. The ==text== form was proposed in the CommonMark forum's Extensions category, and no maintainer decision is reported there.
What happens to ==text== in an app that does not support it?
The equals signs usually show up as literal characters around your text. Nothing breaks, but the highlight is gone.
Is the mark tag safe to use in Markdown files?
The element itself has been widely available in browsers since July 2015. Whether a Markdown renderer passes inline HTML through is up to that renderer, so preview a test line first.
Can I combine ==highlight== with bold or links?
It can break in some processors. Putting the formatting inside a <mark> element is the more reliable approach.