Skip to main content

splice_marked_block

Function splice_marked_block 

Source
pub fn splice_marked_block(existing: Option<&[u8]>, block: &str) -> Vec<u8> ⓘ
Expand description

The whole document’s bytes after splicing a marked block into it.

A fresh file where none exists, the block replaced in place where one is marked, appended after the target’s own content otherwise: release-kit owns the lines inside the markers, not the document. Both markdown destinations take this shape, AGENTS.md and the glossary.