diff options
author | 2022-06-13 14:50:48 +0200 | |
---|---|---|
committer | 2022-06-13 14:56:28 +0200 | |
commit | 4277dac07db06f24ba30a75b4c1dec542e32dae8 (patch) | |
tree | bcad7ace156eecf64fd8d0fb03a4b091bac2f845 /src/lib.rs | |
parent | efdf90959f78d1582da312bffbefaabb79f264b7 (diff) | |
download | markdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.tar.gz markdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.tar.bz2 markdown-rs-4277dac07db06f24ba30a75b4c1dec542e32dae8.zip |
Add support for sanitizing urls
* Add support for properly encoding characters in urls
* Add support for sanitizing potentially dangerous urls
* Add safe defaults, optionally live dangerously
Diffstat (limited to '')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -42,6 +42,7 @@ pub fn micromark(value: &str) -> String { /// /// let result = micromark_with_options("<div>\n\n# Hello, world!\n\n</div>", &CompileOptions { /// allow_dangerous_html: true, +/// allow_dangerous_protocol: true, /// }); /// /// assert_eq!(result, "<div>\n<h1>Hello, world!</h1>\n</div>"); |