@@ -1094,6 +1094,7 @@ pub fn plain_summary_line(md: &str) -> String {
1094
1094
mod tests {
1095
1095
use super :: { LangString , Markdown , MarkdownHtml } ;
1096
1096
use super :: plain_summary_line;
1097
+ use super :: RenderType ;
1097
1098
use html:: render:: reset_ids;
1098
1099
1099
1100
#[ test]
@@ -1134,14 +1135,14 @@ mod tests {
1134
1135
#[ test]
1135
1136
fn issue_17736 ( ) {
1136
1137
let markdown = "# title" ;
1137
- format ! ( "{}" , Markdown ( markdown) ) ;
1138
+ format ! ( "{}" , Markdown ( markdown, RenderType :: Pulldown ) ) ;
1138
1139
reset_ids ( true ) ;
1139
1140
}
1140
1141
1141
1142
#[ test]
1142
1143
fn test_header ( ) {
1143
1144
fn t ( input : & str , expect : & str ) {
1144
- let output = format ! ( "{}" , Markdown ( input) ) ;
1145
+ let output = format ! ( "{}" , Markdown ( input, RenderType :: Pulldown ) ) ;
1145
1146
assert_eq ! ( output, expect, "original: {}" , input) ;
1146
1147
reset_ids ( true ) ;
1147
1148
}
@@ -1163,7 +1164,7 @@ mod tests {
1163
1164
#[ test]
1164
1165
fn test_header_ids_multiple_blocks ( ) {
1165
1166
fn t ( input : & str , expect : & str ) {
1166
- let output = format ! ( "{}" , Markdown ( input) ) ;
1167
+ let output = format ! ( "{}" , Markdown ( input, RenderType :: Pulldown ) ) ;
1167
1168
assert_eq ! ( output, expect, "original: {}" , input) ;
1168
1169
}
1169
1170
@@ -1204,7 +1205,7 @@ mod tests {
1204
1205
#[ test]
1205
1206
fn test_markdown_html_escape ( ) {
1206
1207
fn t ( input : & str , expect : & str ) {
1207
- let output = format ! ( "{}" , MarkdownHtml ( input) ) ;
1208
+ let output = format ! ( "{}" , MarkdownHtml ( input, RenderType :: Pulldown ) ) ;
1208
1209
assert_eq ! ( output, expect, "original: {}" , input) ;
1209
1210
}
1210
1211
0 commit comments