pub fn apply_marker_content(existing: &str, snippet: &str) -> StringExpand description
Apply marker-delimited content to a string.
- If markers exist, replace content between them.
- If no markers, append the content.
- If the string is empty, just use the content.