pub struct Rule005AdmonitionNewlines;
Expand description
Admonition JSX tags must have empty line separation from their content.
§Examples
§Valid
<Admonition type="caution">
This is the content.
</Admonition>
§Invalid
<Admonition type="caution">
This is the content.
</Admonition>
§Rule Details
This rule enforces that Admonition components have proper spacing:
- Empty line after the opening
<Admonition>
tag - Empty line before the closing
</Admonition>
tag
This ensures consistent formatting and improved readability of admonition content.
Trait Implementations§
Source§impl Debug for Rule005AdmonitionNewlines
impl Debug for Rule005AdmonitionNewlines
Source§impl Default for Rule005AdmonitionNewlines
impl Default for Rule005AdmonitionNewlines
Source§fn default() -> Rule005AdmonitionNewlines
fn default() -> Rule005AdmonitionNewlines
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Rule005AdmonitionNewlines
impl RefUnwindSafe for Rule005AdmonitionNewlines
impl Send for Rule005AdmonitionNewlines
impl Sync for Rule005AdmonitionNewlines
impl Unpin for Rule005AdmonitionNewlines
impl UnwindSafe for Rule005AdmonitionNewlines
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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