Marker Highlights
About 199 wordsLess than 1 minute
2026-08-31
The marker highlight syntax provides vibrant highlighter effects for phrases within paragraphs, rendered as native semantic <mark> tags.
Basic Syntax
Wrap phrases with double equal signs ==:
Use ==primary theme highlights== to emphasize key takeaways in your articles.Rendered Preview: Use primary theme highlights to emphasize key takeaways in your articles.
Semantic Color Suffixes
Append class suffixes to specify semantic color roles:
==Secondary emphasis state=={.secondary}
==Critical errors and conditions=={.error}
==Tips and recommendations=={.tip}
==Tertiary palette accent=={.tertiary}Omitting the suffix defaults to the primary (theme primary color) variant.
Escaping and Limitations
- Prepend a backslash to prevent highlighting:
\==plain text==renders the double equal signs literally. - Highlights do not span lines; they only apply to text within the same line.
- Content containing
[or]is not converted (to avoid conflicts with link and image syntax). ==inside inline code and fenced code blocks always stays literal and is never converted.- Unknown variant suffixes are not parsed and render as-is.
Highlights
- Generates standard
<mark>HTML elements for screen reader accessibility. - Highlight background colors are dynamically derived from Material 3 Expressive semantic color tokens.
- Zero client-side JavaScript execution.
Copyright
Copyright Ownership:Dawn6666666
License under:Attribution 4.0 International (CC-BY-4.0)