pub struct MD036Config {
pub punctuation: String,
pub fix: bool,
pub heading_style: HeadingStyle,
pub heading_level: HeadingLevel,
}Expand description
Configuration for MD036 (Emphasis used instead of a heading)
Fields§
§punctuation: StringPunctuation characters that indicate emphasis is not being used as a heading. If the emphasized text ends with one of these characters, it won’t be flagged. Default: “.,;:!?” - common trailing punctuation indicates a phrase, not a heading Set to empty string to flag all emphasis-only lines
fix: boolEnable auto-fix to convert emphasis-as-heading to real headings.
from_config defaults this to true (matching the rule’s advertised
FullyFixable capability), so rumdl fmt rewrites surviving lines —
check() already excludes lists, blockquotes, code blocks, headings,
TOC labels, and punctuation-terminated phrases. Set to false in TOML
for diagnostic-only behavior.
heading_style: HeadingStyleHeading style to use when auto-fixing. Default: “atx” (## Heading)
heading_level: HeadingLevelHeading level (1-6) to use when auto-fixing. Default: 2 (## Heading) Invalid values (0 or >6) produce a config validation error.
Trait Implementations§
Source§impl Clone for MD036Config
impl Clone for MD036Config
Source§fn clone(&self) -> MD036Config
fn clone(&self) -> MD036Config
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MD036Config
impl Debug for MD036Config
Source§impl Default for MD036Config
impl Default for MD036Config
Source§impl<'de> Deserialize<'de> for MD036Config
impl<'de> Deserialize<'de> for MD036Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MD036Config
impl PartialEq for MD036Config
Source§fn eq(&self, other: &MD036Config) -> bool
fn eq(&self, other: &MD036Config) -> bool
self and other values to be equal, and is used by ==.Source§impl RuleConfig for MD036Config
impl RuleConfig for MD036Config
Source§impl Serialize for MD036Config
impl Serialize for MD036Config
impl StructuralPartialEq for MD036Config
Auto Trait Implementations§
impl Freeze for MD036Config
impl RefUnwindSafe for MD036Config
impl Send for MD036Config
impl Sync for MD036Config
impl Unpin for MD036Config
impl UnsafeUnpin for MD036Config
impl UnwindSafe for MD036Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more