Skip to content

Commit ddb8804

Browse files
kivikakkdruskus20
authored andcommitted
assert this behaviour.
See kivikakk#679 (comment).
1 parent 1a1ffa2 commit ddb8804

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/tests/regressions.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,20 @@ hello [email protected] world
239239
])
240240
);
241241
}
242+
243+
#[test]
244+
fn autolink_between_escaped_chars() {
245+
assert_ast_match!(
246+
[extension.autolink],
247+
"a.b-c\\[email protected]\\_\n",
248+
(document (1:1-1:14) [
249+
(paragraph (1:1-1:14) [
250+
(text (1:1-1:7) "a.b-c_")
251+
(link (1:8-1:12) "mailto:[email protected]" [
252+
(text (1:8-1:12) "[email protected]")
253+
])
254+
(text (1:14-1:14) "_")
255+
])
256+
])
257+
);
258+
}

0 commit comments

Comments
 (0)