File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ keywords = ["markdown", "markdown-it"]
11
11
categories = [" text-processing" , " parsing" ]
12
12
13
13
[workspace .dependencies ]
14
- markdown-it = " 0.5 "
14
+ markdown-it = { version = " 0.6 " , default-features = false }
15
15
regex = " >= 1.0.0, < 2"
16
16
once_cell = " >= 1.0.1, < 2"
17
17
testing = " 0.33"
Original file line number Diff line number Diff line change @@ -70,8 +70,7 @@ pub struct DefinitionListScanner;
70
70
71
71
impl BlockRule for DefinitionListScanner {
72
72
fn check ( state : & mut BlockState ) -> Option < ( ) > {
73
- // if it's indented more than 3 spaces, it should be a code block
74
- if state. line_indent ( state. line ) >= 4 {
73
+ if state. line_indent ( state. line ) >= state. md . max_indent {
75
74
return None ;
76
75
}
77
76
@@ -85,8 +84,7 @@ impl BlockRule for DefinitionListScanner {
85
84
}
86
85
87
86
fn run ( state : & mut BlockState ) -> Option < ( Node , usize ) > {
88
- // if it's indented more than 3 spaces, it should be a code block
89
- if state. line_indent ( state. line ) >= 4 {
87
+ if state. line_indent ( state. line ) >= state. md . max_indent {
90
88
return None ;
91
89
}
92
90
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ struct FootnoteDefinitionScanner;
58
58
59
59
impl FootnoteDefinitionScanner {
60
60
fn is_def ( state : & mut BlockState ) -> Option < ( String , usize ) > {
61
- // if it's indented more than 3 spaces, it should be a code block
62
- if state. line_indent ( state. line ) >= 4 {
61
+ if state. line_indent ( state. line ) >= state. md . max_indent {
63
62
return None ;
64
63
}
65
64
You can’t perform that action at this time.
0 commit comments