Skip to content

Commit

Permalink
⬆️ Update markdown-it v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Aug 3, 2023
1 parent 3a9b1a4 commit f43d961
Show file tree
Hide file tree
Showing 3 changed files with 7 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
8 changes: 4 additions & 4 deletions crates/deflist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ 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 +85,8 @@ 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
4 changes: 2 additions & 2 deletions crates/footnote/src/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ 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 f43d961

Please sign in to comment.