Skip to content

Commit

Permalink
Replace field access with function call to is_in_code_block
Browse files Browse the repository at this point in the history
There is a breaking change in the pulldown-cmark-to-cmark
which replaced the boolean with the function call.
  • Loading branch information
kdarkhan committed Nov 2, 2024
1 parent 69518ce commit 362cf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n-helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub fn extract_events<'a>(text: &'a str, state: Option<State<'a>>) -> Vec<(usize
// If we're in a code block, we disable the normal parsing and
// return lines of text. This matches the behavior of the
// parser in this case.
Some(state) if state.is_in_code_block => text
Some(state) if state.is_in_code_block() => text
.split_inclusive('\n')
.enumerate()
.map(|(idx, line)| (idx + 1, Event::Text(line.into())))
Expand Down

0 comments on commit 362cf77

Please sign in to comment.