pub fn write(fm: &Frontmatter, body: &str) -> Result<String>Expand description
Write frontmatter back into a document, preserving the body.
#writer-emits-deprecated-queue-active-false: emit the canonical queue:
control, never the deprecated queue_active: line — regardless of which path
set the queue state. Any caller that set queue_active directly (then called
write()) has it folded onto queue here, and a queue_active carried over
from a parse (where normalize_queue_control mirrors queue: onto it) is
dropped so it is not double-emitted alongside the canonical key. Readers still
resolve both forms (normalize_queue_control folds queue: back onto
queue_active on parse), and a doc with no queue state writes neither.