Aliases: emphasis-style
Tags: emphasis
Fixable: Some violations can be fixed by tooling
This rule is triggered when the symbols used in the document for emphasis do not match the configured emphasis style:
*Text*
_Text_To fix this issue, use the configured emphasis style throughout the document:
*Text*
*Text*The configured emphasis style can be a specific symbol to use (asterisk, underscore) or can require all emphasis matches the first emphasis (consistent).
Note: Emphasis within a word is restricted to asterisk in order to avoid unwanted emphasis for words containing internal underscores like_this_one.
style: Emphasis style (string, defaultconsistent, valuesasterisk/consistent/underscore)
[linters.settings.emphasis-style]
style = "asterisk"This paragraph uses *consistent* asterisk emphasis throughout the *entire* document.This paragraph uses _consistent_ underscore emphasis throughout the _entire_ document.This paragraph *uses* both _kinds_ of emphasis marker.This paragraph uses *only* asterisk emphasis *throughout*.This paragraph uses *asterisk* and _underscore_ emphasis.This paragraph uses _only_ underscore emphasis _throughout_.This paragraph uses _underscore_ and *asterisk* emphasis.Intraword emphasis is always allowed with asterisk regardless of the configured style:
This apple*banana*cherry intraword emphasis is always valid.Consistent formatting makes it easier to understand a document.