This commit is contained in:
llama 2025-07-01 07:54:01 +08:00
parent f62ac3eb6f
commit df90889d72
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -617,6 +617,16 @@ mod test {
);
}
#[test]
fn strip_clozes_regex() {
assert_eq!(
strip_clozes(
r#"The {{c1::moon::🌛}} {{c2::orbits::this hint has "::" in it}} the {{c3::🌏}}."#
),
"The moon orbits the 🌏."
);
}
#[test]
fn mathjax_html() {
// escaped angle brackets should be preserved