pub struct MD007 {
pub indent: usize,
pub start_indent: usize,
pub start_indented: bool,
}Expand description
MD007 - Unordered list indentation
Fields§
§indent: usizeNumber of spaces for indent (default: 2)
start_indent: usizeSpaces for first level indent when start_indented is set (default: 2)
start_indented: boolWhether to indent the first level of the list (default: false)
Implementations§
Source§impl MD007
impl MD007
pub fn new() -> Self
pub fn with_indent(self, indent: usize) -> Self
pub fn with_start_indent(self, start_indent: usize) -> Self
pub fn with_start_indented(self, start_indented: bool) -> Self
Trait Implementations§
Source§impl Rule for MD007
impl Rule for MD007
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of what the rule checks
Source§fn metadata(&self) -> RuleMetadata
fn metadata(&self) -> RuleMetadata
Metadata about this rule’s status and properties
Source§fn check_with_ast<'a>(
&self,
document: &Document,
_ast: Option<&'a AstNode<'a>>,
) -> Result<Vec<Violation>>
fn check_with_ast<'a>( &self, document: &Document, _ast: Option<&'a AstNode<'a>>, ) -> Result<Vec<Violation>>
Check a document for violations of this rule with optional pre-parsed AST
Source§fn check(&self, document: &Document) -> Result<Vec<Violation>>
fn check(&self, document: &Document) -> Result<Vec<Violation>>
Check a document for violations of this rule (backward compatibility)
Auto Trait Implementations§
impl Freeze for MD007
impl RefUnwindSafe for MD007
impl Send for MD007
impl Sync for MD007
impl Unpin for MD007
impl UnwindSafe for MD007
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