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
markdownormdlanguage. - 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.