MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / strikethrough

Function strikethrough

crates/chat-cli/src/cli/chat/parse.rs:383–395  ·  view source on GitHub ↗
(
    mut o: impl Write + 'b,
    state: &'b mut ParseState,
)

Source from the content-addressed store, hash-verified

381}
382
383fn 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
397fn citation<'a, 'b>(
398 mut o: impl Write + 'b,

Callers

nothing calls this directly

Calls 1

queueFunction · 0.85

Tested by

no test coverage detected