Skip to main content

escape_brain

Function escape_brain 

Source
pub fn escape_brain(text: &str) -> String
Expand description

Brain text as it’s shown after FRAMING (RB-011.5 item 6): a line that starts with # (a heading of its own) or with the framing line’s words gets a \ in front, so it can’t pass for a part of what mnemo wrote around it. The essence’s own headings (# essence — … and ## <section>) stay as they are. The card’s rule that brain content is data is the real guard; this keeps the boundary visible.