Match A String Until A Case Insensitive Tag With nom In Rust
Code
>>
pub fn code_block(source: &str) -> IResult<&str, Section> { let (_, b) = many_till(anychar, tag_no_case("#+end_src"))(source)?; let snippet: String = b.0.iter().collect(); dbg!(snippet); Ok(( source, Section::Code { lang: None, text: "code".to_string(), }, )) }