elsie
3.3
▾ elsie
▸ boxtree
▸ ext
▸ render
▸ shapes
▸ slides
▾ text
▸ highlight
▸ stylecontainer
▸ textboxitem
▾ textparser
▸ textstyle
▸ utils
▸ version
Module textparser
elsie
.
text
.
textparser
source
link
Functions
▶
def
add_line_numbers
(
tokens
)
source
link
Reexports
Imported in
elsie.boxtree.boxmixin
.
▶
def
extract_line
(
tokens, index
)
source
link
Reexports
Imported in
elsie.text.textboxitem
.
▶
def
normalize_tokens
(
tokens
)
source
link
Reexports
Imported in
elsie.text.highlight
.
▶
def
number_of_lines
(
parsed_text
)
source
link
Reexports
Imported in
elsie.text.textboxitem
.
▶
def
parse_text
(
text, escape_char="~", begin_char="{", end_char="}"
)
source
link
Reexports
Imported in
elsie.boxtree.boxmixin
.
▶
def
tokens_merge
(
tokens1, tokens2
)
source
link
Reexports
Imported in
elsie.boxtree.boxmixin
.
▶
def
tokens_to_text_without_style
(
tokens
)
source
link
Reexports
Imported in
elsie.boxtree.boxmixin
.
▶
def
trim_indent
(
text: str
) -> str
Find the smallest common indent from the left in the text and remove it from the text.
source
link
Reexports
Imported in
elsie.ext.markdown
.
Generated by
nedoc
v0.10 at 2022-02-05 18:22