Crate zng_wgt_markdown

Source
Expand description

Markdown widget, properties and nodes.

§Crate

This crate is part of the zng project.

Structs§

BlockQuoteFnArgs
Arguments for a markdown block quote view.
CodeBlockFnArgs
Arguments for a markdown code block view.
CodeInlineFnArgs
Arguments for a markdown inlined code text view.
DefListArgs
Arguments for a markdown definition list.
DefListItemDefinitionArgs
Arguments for a markdown definition list item description.
DefListItemTitleArgs
Arguments for a markdown definition list item title.
FootnoteDefFnArgs
Arguments for a markdown footnote definition view.
FootnoteRefFnArgs
Arguments for a markdown footnote reference view.
HeadingFnArgs
Arguments for a markdown heading view.
ImageFnArgs
Arguments for a markdown image view.
LinkArgs
Arguments for the LINK_EVENT.
LinkFnArgs
Arguments for a markdown inlined link view.
ListFnArgs
Arguments for a markdown list view.
ListItemBulletFnArgs
Arguments for a markdown list item bullet, check mark or number.
ListItemFnArgs
Arguments for a markdown list item view.
Markdown
W Render markdown styled text.
MarkdownStyle
Markdown text run style.
PanelFnArgs
Arguments for a markdown panel.
ParagraphFnArgs
Arguments for a markdown paragraph view.
RuleFnArgs
Arguments for a markdown rule view.
TableCellFnArgs
Arguments for a markdown table cell view.
TableFnArgs
Arguments for a markdown table view.
TextFnArgs
Arguments for a markdown text view.

Enums§

HeadingLevel
ImageResolver
Markdown image resolver.
LinkResolver
Markdown link resolver.

Statics§

BLOCK_QUOTE_FN_VAR
Widget function for a markdown block quote.
CODE_BLOCK_FN_VAR
Widget function for a markdown code block segment.
CODE_INLINE_FN_VAR
Widget function for a markdown inline code segment.
DEF_LIST_FN_VAR
Widget function for a markdown definition list.
DEF_LIST_ITEM_DEFINITION_FN_VAR
Widget function for a markdown definition list item description.
DEF_LIST_ITEM_TITLE_FN_VAR
Widget function for a markdown definition list item title.
FOOTNOTE_DEF_FN_VAR
Widget function for a footnote definition block.
FOOTNOTE_REF_FN_VAR
Widget function for an inline reference to a footnote.
HEADING_FN_VAR
Widget function for a markdown heading.
IMAGE_FN_VAR
Widget function for a markdown image.
IMAGE_RESOLVER_VAR
Markdown image resolver.
LINK_EVENT
Event raised by markdown links when clicked.
LINK_FN_VAR
Widget function for a markdown link segment.
LINK_RESOLVER_VAR
Markdown link resolver.
LINK_SCROLL_MODE_VAR
Scroll mode used by anchor links.
LIST_FN_VAR
Widget function for a markdown list.
LIST_ITEM_BULLET_FN_VAR
Widget function for a markdown list item bullet, check mark or number.
LIST_ITEM_FN_VAR
Widget function for a markdown list item content.
PANEL_FN_VAR
Widget function for a markdown panel.
PARAGRAPH_FN_VAR
Widget function for a markdown paragraph.
RULE_FN_VAR
Widget function for a markdown rule line.
TABLE_CELL_FN_VAR
Widget function for a markdown table body cell.
TABLE_FN_VAR
Widget function for a markdown table.
TEXT_FN_VAR
Widget function for a markdown text segment.

Traits§

WidgetInfoExt
Markdown extension methods for widget info.

Functions§

anchor
P Set a label that identifies the widget in the context of the parent markdown.
block_quote_fn
P Widget function that converts BlockQuoteFnArgs to widgets.
code_block_fn
P Widget function that converts CodeBlockFnArgs to widgets.
code_inline_fn
P Widget function that converts CodeInlineFnArgs to widgets.
def_list_fn
P Widget function that converts DefListArgs to widgets.
def_list_item_definition_fn
P Widget function that converts DefListItemDefinitionArgs to widgets.
def_list_item_title_fn
P Widget function that converts DefListItemTitleArgs to widgets.
default_block_quote_fn
Default block quote view.
default_code_block_fn
Default code block view.
default_code_inline_fn
Default inlined code text view.
default_def_list_fn
Default definition list view.
default_def_list_item_definition_fn
Default definition list item description view.
default_def_list_item_title_fn
Default definition list item title view.
default_footnote_def_fn
Default markdown footnote definition.
default_footnote_ref_fn
Default markdown footnote reference.
default_heading_fn
Default heading view.
default_image_fn
Default image view.
default_link_fn
Default inlined link view.
default_list_fn
Default list view.
default_list_item_bullet_fn
Default list item bullet, check mark or number view.
default_list_item_fn
Default list item view.
default_panel_fn
Default markdown panel.
default_paragraph_fn
Default paragraph view.
default_rule_fn
Default rule view.
default_table_cell_fn
Default markdown table.
default_table_fn
Default markdown table.
default_text_fn
Default text view.
footnote_def_fn
P Widget function that converts FootnoteDefFnArgs to widgets.
footnote_ref_fn
P Widget function that converts FootnoteRefFnArgs to widgets.
heading_anchor
Generate an anchor label for a header.
heading_fn
P Widget function that converts HeadingFnArgs to widgets.
image_fn
P Widget function that converts ImageFnArgs to widgets.
image_resolver
P Markdown image resolver.
link_fn
P Widget function that converts LinkFnArgs to widgets.
link_resolver
P Markdown link resolver.
link_scroll_mode
P Scroll-to mode used by anchor links.
list_fn
P Widget function that converts ListFnArgs to widgets.
list_item_bullet_fn
P Widget function that converts ListItemBulletFnArgs to widgets.
list_item_fn
P Widget function that converts ListItemFnArgs to widgets.
markdown_node
Implements the markdown parsing and view generation, configured by contextual properties.
on_link
P Markdown link click.
on_pre_link
P Preview on_link event.
panel_fn
P Widget function that converts PanelFnArgs to a widget.
paragraph_fn
P Widget function that converts ParagraphFnArgs to widgets.
rule_fn
P Widget function that converts RuleFnArgs to widgets.
table_fn
P Widget function that converts TableFnArgs to widgets.
text_fn
P Widget function that converts TextFnArgs to widgets.
try_default_link_action
Default markdown link action.
try_open_link
Try open link, only works if the url is valid or a file path, returns if the confirm tooltip is visible.
try_scroll_link
Handle url in the format #anchor, by scrolling and focusing the anchor.