@@ -20,8 +20,8 @@ fn paragraph_multiple() {
20
20
#[ test]
21
21
fn headings ( ) {
22
22
let md = "# Heading 1\n ## Heading 2\n ### Heading 3\n #### Heading 4\n ##### Heading 5\n ###### Heading 6\n " ;
23
- let text = render_markdown_text ( md) ;
24
- let expected = Text :: from_iter ( [
23
+ let _text = render_markdown_text ( md) ;
24
+ let _expected = Text :: from_iter ( [
25
25
Line :: from_iter ( [ "# " . bold ( ) . underlined ( ) , "Heading 1" . bold ( ) . underlined ( ) ] ) ,
26
26
Line :: default ( ) ,
27
27
Line :: from_iter ( [ "## " . bold ( ) , "Heading 2" . bold ( ) ] ) ,
@@ -38,8 +38,8 @@ fn headings() {
38
38
39
39
#[ test]
40
40
fn blockquote_multiple_with_break ( ) {
41
- let text = render_markdown_text ( "> Blockquote 1\n \n > Blockquote 2\n " ) ;
42
- let expected = Text :: from_iter ( [
41
+ let _text = render_markdown_text ( "> Blockquote 1\n \n > Blockquote 2\n " ) ;
42
+ let _expected = Text :: from_iter ( [
43
43
Line :: from_iter ( [ "> " , "Blockquote 1" ] ) . green ( ) ,
44
44
Line :: default ( ) ,
45
45
Line :: from_iter ( [ "> " , "Blockquote 2" ] ) . green ( ) ,
@@ -52,7 +52,7 @@ fn blockquote_in_ordered_list_on_next_line() {
52
52
// render inline on the same marker line.
53
53
let md = "1.\n > quoted\n " ;
54
54
let text = render_markdown_text ( md) ;
55
- let lines : Vec < String > = text
55
+ let _lines : Vec < String > = text
56
56
. lines
57
57
. iter ( )
58
58
. map ( |l| {
@@ -68,7 +68,7 @@ fn blockquote_in_ordered_list_on_next_line() {
68
68
fn blockquote_inside_nested_list ( ) {
69
69
let md = "1. A\n - B\n > inner\n " ;
70
70
let text = render_markdown_text ( md) ;
71
- let lines : Vec < String > = text
71
+ let _lines : Vec < String > = text
72
72
. lines
73
73
. iter ( )
74
74
. map ( |l| {
@@ -82,14 +82,14 @@ fn blockquote_inside_nested_list() {
82
82
83
83
#[ test]
84
84
fn blockquote_heading_inherits_heading_style ( ) {
85
- let text = render_markdown_text ( "> # test header\n > in blockquote\n " ) ;
85
+ let _text = render_markdown_text ( "> # test header\n > in blockquote\n " ) ;
86
86
}
87
87
88
88
#[ test]
89
89
fn blockquote_with_code_block ( ) {
90
90
let md = "> ```\n > code\n > ```\n " ;
91
91
let text = render_markdown_text ( md) ;
92
- let lines : Vec < String > = text
92
+ let _lines : Vec < String > = text
93
93
. lines
94
94
. iter ( )
95
95
. map ( |l| {
@@ -103,8 +103,8 @@ fn blockquote_with_code_block() {
103
103
104
104
#[ test]
105
105
fn list_unordered_single ( ) {
106
- let text = render_markdown_text ( "- List item 1\n " ) ;
107
- let expected = Text :: from_iter ( [ Line :: from_iter ( [ "- " , "List item 1" ] ) ] ) ;
106
+ let _text = render_markdown_text ( "- List item 1\n " ) ;
107
+ let _expected = Text :: from_iter ( [ Line :: from_iter ( [ "- " , "List item 1" ] ) ] ) ;
108
108
}
109
109
110
110
#[ test]
@@ -117,8 +117,8 @@ fn strikethrough() {
117
117
118
118
#[ test]
119
119
fn strong_emphasis ( ) {
120
- let text = render_markdown_text ( "**Strong *emphasis***" ) ;
121
- let expected = Text :: from ( Line :: from_iter ( [
120
+ let _text = render_markdown_text ( "**Strong *emphasis***" ) ;
121
+ let _expected = Text :: from ( Line :: from_iter ( [
122
122
"Strong " . bold ( ) ,
123
123
"emphasis" . bold ( ) . italic ( ) ,
124
124
] ) ) ;
@@ -128,7 +128,7 @@ fn strong_emphasis() {
128
128
fn code_block_inside_unordered_list_item_is_indented ( ) {
129
129
let md = "- Item\n \n ```\n code line\n ```\n " ;
130
130
let text = render_markdown_text ( md) ;
131
- let lines : Vec < String > = text
131
+ let _lines : Vec < String > = text
132
132
. lines
133
133
. iter ( )
134
134
. map ( |l| {
@@ -143,8 +143,8 @@ fn code_block_inside_unordered_list_item_is_indented() {
143
143
#[ test]
144
144
fn nested_five_levels_mixed_lists ( ) {
145
145
let md = "1. First\n - Second level\n 1. Third level (ordered)\n - Fourth level (bullet)\n - Fifth level to test indent consistency\n " ;
146
- let text = render_markdown_text ( md) ;
147
- let expected = Text :: from_iter ( [
146
+ let _text = render_markdown_text ( md) ;
147
+ let _expected = Text :: from_iter ( [
148
148
Line :: from_iter ( [ "1. " . light_blue ( ) , "First" . into ( ) ] ) ,
149
149
Line :: from_iter ( [ " - " , "Second level" ] ) ,
150
150
Line :: from_iter ( [ " 1. " . light_blue ( ) , "Third level (ordered)" . into ( ) ] ) ,
0 commit comments