We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c346b95 commit d40d484Copy full SHA for d40d484
src/markdown/lib.rs
@@ -246,6 +246,7 @@ static MARKDOWN_EXTENSIONS: [&str; 7] =
246
///
247
/// let text = "[Rust](https://rust-lang.org/) is an awesome *systems programming* language!";
248
/// let rendered = text_to_html(text, "README.md", None);
249
+/// assert_eq!(rendered, "<p><a href=\"https://rust-lang.org/\" rel=\"nofollow noopener noreferrer\">Rust</a> is an awesome <em>systems programming</em> language!</p>\n");
250
/// ```
251
pub fn text_to_html(text: &str, path: &str, base_url: Option<&str>) -> String {
252
let path = Path::new(path);
0 commit comments