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 b070d14 commit 0aeeabeCopy full SHA for 0aeeabe
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 = readme_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 readme_to_html(text: &str, readme_path: &str, base_url: Option<&str>) -> String {
252
let readme_path = Path::new(readme_path);
0 commit comments