Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Remove Lines That Start With A Token In Rust

TODO : Write this up from the org mode to noepolitan processor.

rust
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...
}