From 342d09574f418549b801d133bef792649301d8aa Mon Sep 17 00:00:00 2001 From: Konsta Hölttä Date: Sun, 6 Sep 2020 17:46:45 +0300 Subject: Arbitrary scheme url demo for issue #18 (#19) Co-authored-by: Philipp A --- renderer/src/html/tests.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'renderer/src') 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 @@ -72,6 +72,15 @@ reference and the target.

\ "); } +#[test] +fn standalone_hyperlinks() { + check_renders_to("\ +Some http://url and a not_url_scheme:foo that is not supposed to be an url. +", "\ +

Some http://url and a not_url_scheme:foo that is not supposed to be an url.

\ +"); +} + #[test] fn substitution() { check_renders_to("\ -- cgit v1.2.3