Skip to content

Reference for MarkdownLine

The MarkdownLine represents a markdown-formatted line and some associated features (whether the line is a header, or belongs to a code block for example).

Bases: BaseModel

is_bullet_point: bool property

whether or not the line is a bullet point

isin_table: bool property

whether or not the line belongs to a table

get_header_level()

Gets the header level of this line (1-based)

Raises:

Type Description
ValueError

if the line is not a header, raises an error

Returns:

Name Type Description
int int

the header level, h1 headers would return 1