Add testcase for subscript-autolink interaction philomena-dev/philomena#315

This commit is contained in:
Liam 2024-11-17 16:38:51 -05:00
parent 3c4b717917
commit a60c7d9e79

View file

@ -48,6 +48,14 @@ fn subscript() {
html("H%2%O\n", "<div class=\"paragraph\">H<sub>2</sub>O</div>\n");
}
#[test]
fn subscript_autolink_interaction() {
html(
"https://example.com/search?q=1%2C2%2C3",
"<div class=\"paragraph\"><a href=\"https://example.com/search?q=1%2C2%2C3\">https://example.com/search?q=1%2C2%2C3</a></div>\n"
);
}
#[test]
fn spoiler() {
html(