rumdl 0.1.51

A fast Markdown linter written in Rust (Ru(st) MarkDown Linter)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::rule_config_serde::RuleConfig;
use serde::{Deserialize, Serialize};

/// MD045 is diagnostic-only and has no configurable options.
/// The struct accepts (and ignores) the legacy `placeholder-text` field
/// for backward compatibility with existing config files.
#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq)]
pub struct MD045Config {
    #[serde(default, rename = "placeholder-text", alias = "placeholder_text", skip_serializing)]
    _placeholder_text: Option<String>,
}

impl RuleConfig for MD045Config {
    const RULE_NAME: &'static str = "MD045";
}