@@ -1094,6 +1094,7 @@ pub fn plain_summary_line(md: &str) -> String {
10941094mod tests {
10951095 use super :: { LangString , Markdown , MarkdownHtml } ;
10961096 use super :: plain_summary_line;
1097+ use super :: RenderType ;
10971098 use html:: render:: reset_ids;
10981099
10991100 #[ test]
@@ -1134,14 +1135,14 @@ mod tests {
11341135 #[ test]
11351136 fn issue_17736 ( ) {
11361137 let markdown = "# title" ;
1137- format ! ( "{}" , Markdown ( markdown) ) ;
1138+ format ! ( "{}" , Markdown ( markdown, RenderType :: Pulldown ) ) ;
11381139 reset_ids ( true ) ;
11391140 }
11401141
11411142 #[ test]
11421143 fn test_header ( ) {
11431144 fn t ( input : & str , expect : & str ) {
1144- let output = format ! ( "{}" , Markdown ( input) ) ;
1145+ let output = format ! ( "{}" , Markdown ( input, RenderType :: Pulldown ) ) ;
11451146 assert_eq ! ( output, expect, "original: {}" , input) ;
11461147 reset_ids ( true ) ;
11471148 }
@@ -1163,7 +1164,7 @@ mod tests {
11631164 #[ test]
11641165 fn test_header_ids_multiple_blocks ( ) {
11651166 fn t ( input : & str , expect : & str ) {
1166- let output = format ! ( "{}" , Markdown ( input) ) ;
1167+ let output = format ! ( "{}" , Markdown ( input, RenderType :: Pulldown ) ) ;
11671168 assert_eq ! ( output, expect, "original: {}" , input) ;
11681169 }
11691170
@@ -1204,7 +1205,7 @@ mod tests {
12041205 #[ test]
12051206 fn test_markdown_html_escape ( ) {
12061207 fn t ( input : & str , expect : & str ) {
1207- let output = format ! ( "{}" , MarkdownHtml ( input) ) ;
1208+ let output = format ! ( "{}" , MarkdownHtml ( input, RenderType :: Pulldown ) ) ;
12081209 assert_eq ! ( output, expect, "original: {}" , input) ;
12091210 }
12101211
0 commit comments