diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 19:28:54 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 19:28:54 +0200 |
commit | 7875ada79cea1194dc9e15acee36ed0700be70e6 (patch) | |
tree | f9d5b82ac92a07a3ff1d05401446dd84bc24d6a7 /src/util/sanitize_uri.rs | |
parent | b150a72975d6e75b96298b3d405afe070271d78b (diff) | |
download | markdown-rs-7875ada79cea1194dc9e15acee36ed0700be70e6.tar.gz markdown-rs-7875ada79cea1194dc9e15acee36ed0700be70e6.tar.bz2 markdown-rs-7875ada79cea1194dc9e15acee36ed0700be70e6.zip |
Add docs on sanitizing urls to autolink
Diffstat (limited to 'src/util/sanitize_uri.rs')
-rw-r--r-- | src/util/sanitize_uri.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/sanitize_uri.rs b/src/util/sanitize_uri.rs index 40e0f2c..d66978e 100644 --- a/src/util/sanitize_uri.rs +++ b/src/util/sanitize_uri.rs @@ -5,9 +5,9 @@ use crate::util::encode::encode; /// Make a value safe for injection as a URL. /// /// This encodes unsafe characters with percent-encoding and skips already -/// encoded sequences (see `normalize_uri` below). +/// encoded sequences (see [`normalize_uri`][] below). /// Further unsafe characters are encoded as character references (see -/// `encode`). +/// [`encode`][]). /// /// Then, a vec of (lowercase) allowed protocols can be given, in which case /// the URL is sanitized. |