Skip to main content

systemprompt_sync/export/
mod.rs

1//! Disk serialisation helpers used by the various `*_to_disk` operations.
2//! Each submodule emits the YAML config + Markdown body layout expected by
3//! the matching `*Local Sync`.
4
5mod content;
6
7pub use content::{export_content_to_file, generate_content_markdown};
8
9pub fn escape_yaml(s: &str) -> String {
10    s.replace('\\', "\\\\")
11        .replace('"', "\\\"")
12        .replace('\n', "\\n")
13}