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 e7afaad commit 469fcc4Copy full SHA for 469fcc4
src/parser/mod.rs
@@ -407,8 +407,9 @@ pub struct ComrakRenderOptions {
407
/// "<pre><code class=\"language-rust\">fn hello();\n</code></pre>\n");
408
///
409
/// options.render.full_info_string = true;
410
- /// assert_eq!(markdown_to_html("``` rust extra info\nfn hello();\n```\n", &options),
411
- /// "<pre><code class=\"language-rust\" data-meta=\"extra info\">fn hello();\n</code></pre>\n");
+ /// let html = markdown_to_html("``` rust extra info\nfn hello();\n```\n", &options);
+ /// let re = regex::Regex::new(r#"data-meta="extra info""#).unwrap();
412
+ /// assert!(re.is_match(&html));
413
/// ```
414
pub full_info_string: bool,
415
0 commit comments