Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeEOL ¶
NormalizeEOL applies the given line-ending normalization to data. EOLNone returns data unchanged. Standalone carriage returns are preserved.
func PatchMarkdownFile ¶
PatchMarkdownFile replaces the lines strictly between <!-- marker begin --> and <!-- marker end --> (exclusive of the marker lines) with a fenced ```text block containing out after trimming surrounding whitespace and normalizing CRLF sequences to LF for insertion. It applies EOL normalization to the patched Markdown written back to path: EOLNone matches the target file's perceived style (if consistent), defaulting to LF for mixed-EOL files; EOLLF and EOLCRLF normalize the entire file to LF or CRLF.
Types ¶
type EOLMode ¶
type EOLMode int
EOLMode represents a line-ending normalization mode.
func ParseEOLMode ¶
ParseEOLMode parses a string into an EOLMode. Valid values are "none", "lf", and "crlf" (case-sensitive).