Remove Lines That Start With A Token In Rust
TODO: Write this up from the org mode to noepolitan processor.
Code
pub fn body(source: &str) -> IResult<&str, &str> {
let (source, lines) = many_till(
alt((
preceded(
many0(tuple((tag("#+"), not_line_ending, line_ending))),
terminated(not_line_ending, line_ending),
),
multispace1.map(|x| "\n"),
not_line_ending,
line_ending,
)),
eof,
)(source)?;
///// etc...
}