Skip to main content

should_render_line

Function should_render_line 

Source
pub fn should_render_line(
    element: &MarkdownElement,
    _idx: usize,
    collapse: &CollapseState,
) -> bool
Expand description

Check if a line should be rendered based on collapse state. Check if a markdown element should be rendered based on collapse state.

§Arguments

  • element - The element to check
  • _idx - The index of the element (unused but kept for API compatibility)
  • collapse - The collapse state containing section collapse information

§Returns

true if the element should be rendered.