diff options
| author | Konsta Hölttä | 2020-09-06 17:46:45 +0300 | 
|---|---|---|
| committer | GitHub | 2020-09-06 16:46:45 +0200 | 
| commit | 342d09574f418549b801d133bef792649301d8aa (patch) | |
| tree | de8ffed3f7ad7cd705b75185dd7ef2b70e1f82b6 /renderer/src/html/tests.rs | |
| parent | 6c41888d2b1ee84a5ac7ccded3b15743176289c9 (diff) | |
| download | rust-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/html/tests.rs')
| -rw-r--r-- | renderer/src/html/tests.rs | 9 | 
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|. | 
