(
mut o: impl Write + 'b,
state: &'b mut ParseState,
)
| 303 | } |
| 304 | |
| 305 | fn blockquote<'a, 'b>( |
| 306 | mut o: impl Write + 'b, |
| 307 | state: &'b mut ParseState, |
| 308 | ) -> impl FnMut(&mut Partial<&'a str>) -> PResult<(), Error<'a>> + 'b { |
| 309 | move |i| { |
| 310 | if !state.newline { |
| 311 | return Err(ErrMode::from_error_kind(i, ErrorKind::Fail)); |
| 312 | } |
| 313 | |
| 314 | let level = repeat::<_, _, Vec<&'_ str>, _, _>(1.., terminated(">", space0)) |
| 315 | .parse_next(i)? |
| 316 | .len(); |
| 317 | let print = "│ ".repeat(level); |
| 318 | |
| 319 | queue(&mut o, StyledText::secondary_fg())?; |
| 320 | queue_newline_or_advance(&mut o, state, print.width())?; |
| 321 | queue(&mut o, style::Print(print)) |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | fn bold<'a, 'b>( |
| 326 | mut o: impl Write + 'b, |
nothing calls this directly
no test coverage detected