Skip to main content

Module embedded_lint

Module embedded_lint 

Source
Expand description

Linting of embedded markdown content inside fenced code blocks.

This module provides functions for checking markdown content that appears inside fenced code blocks with markdown or md language tags. These functions are used by both the CLI and LSP to lint embedded markdown.

Constants§

MAX_EMBEDDED_DEPTH
Maximum recursion depth for linting nested markdown blocks.

Functions§

check_embedded_markdown_blocks
Check markdown content embedded in fenced code blocks with markdown or md language.
has_fenced_code_blocks
Check if content contains fenced code block markers.
should_lint_embedded_markdown
Check if embedded markdown linting is enabled via code-block-tools configuration.
strip_common_indent
Strip common leading indentation from all non-empty lines. Returns the stripped content and the common indent string.