Skip to content

Commit 469fcc4

Browse files
committed
Fix breaking test
1 parent e7afaad commit 469fcc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/parser/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,9 @@ pub struct ComrakRenderOptions {
407407
/// "<pre><code class=\"language-rust\">fn hello();\n</code></pre>\n");
408408
///
409409
/// 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");
410+
/// let html = markdown_to_html("``` rust extra info\nfn hello();\n```\n", &options);
411+
/// let re = regex::Regex::new(r#"data-meta="extra info""#).unwrap();
412+
/// assert!(re.is_match(&html));
412413
/// ```
413414
pub full_info_string: bool,
414415

0 commit comments

Comments
 (0)