Skip to main content

Module processor

Module processor 

Source
Expand description

MarkdownProcessor — the streaming core. Ported from markmend/core/src/processor.ts + markmend/ast cache behavior:

raw content
  -> normalize            (CRLF, trim, LaTeX pre-processing)
  -> parse_markdown_into_blocks   (streaming mode; single block in static mode)
  -> preprocess LAST block only   (syntax self-healing fixes)
  -> parse each block to AST      (LRU-cached, only the tail block is new)

Structs§

BlockResult
One processed block: the (preprocessed) source text and its cached AST.
CacheStats
Cache effectiveness counters, exposed for benchmarks and status bars.
Document
Snapshot handed to display adapters.
MarkdownProcessor
ProcessorOptions

Enums§

Mode