Skip to content

Commit

Permalink
⬆️ Update markdown-it v0.6 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Aug 3, 2023
1 parent 3a9b1a4 commit e38f280
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["markdown", "markdown-it"]
categories = ["text-processing", "parsing"]

[workspace.dependencies]
markdown-it = "0.5"
markdown-it = { version = "0.6", default-features = false }
regex = ">= 1.0.0, < 2"
once_cell = ">= 1.0.1, < 2"
testing = "0.33"
Expand Down
6 changes: 2 additions & 4 deletions crates/deflist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ pub struct DefinitionListScanner;

impl BlockRule for DefinitionListScanner {
fn check(state: &mut BlockState) -> Option<()> {
// if it's indented more than 3 spaces, it should be a code block
if state.line_indent(state.line) >= 4 {
if state.line_indent(state.line) >= state.md.max_indent {
return None;
}

Expand All @@ -85,8 +84,7 @@ impl BlockRule for DefinitionListScanner {
}

fn run(state: &mut BlockState) -> Option<(Node, usize)> {
// if it's indented more than 3 spaces, it should be a code block
if state.line_indent(state.line) >= 4 {
if state.line_indent(state.line) >= state.md.max_indent {
return None;
}

Expand Down
3 changes: 1 addition & 2 deletions crates/footnote/src/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ struct FootnoteDefinitionScanner;

impl FootnoteDefinitionScanner {
fn is_def(state: &mut BlockState) -> Option<(String, usize)> {
// if it's indented more than 3 spaces, it should be a code block
if state.line_indent(state.line) >= 4 {
if state.line_indent(state.line) >= state.md.max_indent {
return None;
}

Expand Down

0 comments on commit e38f280

Please sign in to comment.