Skip to main content

without_code_spans

Function without_code_spans 

Source
pub fn without_code_spans(text: &str) -> String
Expand description

A record id inside a backticked code span is being shown, not cited: a message that writes I9999 — Gone from the model is illustrating the shape of a reference, and the layer is not expected to hold it. Blanking the spans before the scan keeps a real citation in prose readable while an example stops being one.

use majordomus_cli::commit::verdict::without_code_spans;
assert_eq!(without_code_spans("names `I9999` here"), "names         here");
assert_eq!(without_code_spans("names I9999 here"), "names I9999 here");