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.

Apply Type To Tuple Parser In Rust's nom Crate

[] Write this up as a full example

rust
tuple((
    tag("```"),
    not_line_ending,
    line_ending,
    take_until("```"),
    tag("```"),
))
.map(
    |(_, x, _, y, _): (&str, &str, &str, &str, &str)| Section::Code {
        lang: Some(x.trim().to_string()),
        text: y.trim().to_string(),
    },
),