Skip to main content

ATTR_LIST_PATTERN

Static ATTR_LIST_PATTERN 

Source
pub static ATTR_LIST_PATTERN: LazyLock<Regex>
Expand description

Pattern to match attr_list syntax: {: #id .class key="value" } The : prefix is optional (kramdown style uses it, but attr_list accepts both) Requirements for valid attr_list:

  • Must start with { and optional : with optional whitespace
  • Must contain at least one of: #id, .class, or key=“value”
  • Must end with }