aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src
diff options
context:
space:
mode:
authorKonsta Hölttä2020-09-06 17:46:45 +0300
committerGitHub2020-09-06 16:46:45 +0200
commit342d09574f418549b801d133bef792649301d8aa (patch)
treede8ffed3f7ad7cd705b75185dd7ef2b70e1f82b6 /renderer/src
parent6c41888d2b1ee84a5ac7ccded3b15743176289c9 (diff)
downloadrust-rst-342d09574f418549b801d133bef792649301d8aa.tar.bz2
Arbitrary scheme url demo for issue #18 (#19)
Co-authored-by: Philipp A <flying-sheep@web.de>
Diffstat (limited to 'renderer/src')
-rw-r--r--renderer/src/html/tests.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/renderer/src/html/tests.rs b/renderer/src/html/tests.rs
index 6a0f350..26c9e72 100644
--- a/renderer/src/html/tests.rs
+++ b/renderer/src/html/tests.rs
@@ -73,6 +73,15 @@ reference and the target.</p>\
}
#[test]
+fn standalone_hyperlinks() {
+ check_renders_to("\
+Some http://url and a not_url_scheme:foo that is not supposed to be an url.
+", "\
+<p>Some <a href=\"http://url/\">http://url</a> and a not_url_scheme:foo that is not supposed to be an url.</p>\
+");
+}
+
+#[test]
fn substitution() {
check_renders_to("\
A |subst|.