Module paste

Module paste 

Source
Expand description

Context-aware paste handling for markdown.

This module handles pasted content with minimal transformation:

  • Normalizes line endings (CRLF → LF)
  • Normalizes curly quotes to straight quotes
  • Preserves content literally in code blocks
  • Adds blockquote prefixes to continuation lines when in a blockquote

Structs§

PasteContext
Context about the cursor position for paste operations.

Functions§

transform_paste
Transform pasted content based on context.