The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Apply Type To Tuple Parser In Rust's nom Crate

TODO: Pull subtitle into page object
Code
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(),
    },
),

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Apply Type To Tuple Parser In Rust's nom Crate

-- todo

[] Write this up as a full example

-- code
-- 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(),
    },
),


-- categories
-- Rust 

-- metadata
-- date: 2023-07-10 12:34:54
-- id: 2so9jtaj
-- site: aws
-- type: post
-- status: scratch