use crate::markdown::state::State;
pub fn format_code_as_indented(value: &str, no_language: bool, state: &State) -> bool {
let non_whitespace = value.chars().any(|character| !character.is_whitespace());
let begins_blank = value
.trim_start_matches([' ', '\t'])
.starts_with(['\r', '\n']);
let ends_blank = value.trim_end_matches([' ', '\t']).ends_with(['\r', '\n']);
!state.options.fences
&& !value.is_empty()
&& no_language
&& non_whitespace
&& !begins_blank
&& !ends_blank
}