(
mut o: impl Write + 'b,
state: &'b mut ParseState,
)
| 381 | } |
| 382 | |
| 383 | fn strikethrough<'a, 'b>( |
| 384 | mut o: impl Write + 'b, |
| 385 | state: &'b mut ParseState, |
| 386 | ) -> impl FnMut(&mut Partial<&'a str>) -> PResult<(), Error<'a>> + 'b { |
| 387 | move |i| { |
| 388 | "~~".parse_next(i)?; |
| 389 | state.strikethrough = !state.strikethrough; |
| 390 | match state.strikethrough { |
| 391 | true => queue(&mut o, style::SetAttribute(Attribute::CrossedOut)), |
| 392 | false => queue(&mut o, style::SetAttribute(Attribute::NotCrossedOut)), |
| 393 | } |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | fn citation<'a, 'b>( |
| 398 | mut o: impl Write + 'b, |