ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Constructor for MarkdownElement.

use crate::widgets::markdown_widget::foundation::elements::enums::ElementKind;
use crate::widgets::markdown_widget::foundation::elements::MarkdownElement;

impl MarkdownElement {
    /// Create a new markdown element with source line tracking.
    pub fn new(kind: ElementKind, section_id: Option<usize>, source_line: usize) -> Self {
        Self {
            kind,
            section_id,
            source_line,
        }
    }
}