class

Crowbar::Rules::MarkdownRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for CommonMark and Markdown documents. Preserves markdown syntax trees, frontmatter, and block hierarchies while mutating link destinations, image sources, code fence tags, table delimiter rows, ATX/Setext heading levels, and nested lists.

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source