Expand description
Markdown widget, properties and other types.
This widget displays CommonMark text, without support for HTML code yet .
zng::markdown::Markdown! {
txt = "# Title\n\n- List item 1.\n- List item 2.";
}§Full API
See zng_wgt_markdown for the full widget API.
Structs§
- Block
Quote FnArgs - Arguments for a markdown block quote view.
- Code
Block FnArgs - Arguments for a markdown code block view.
- Code
Inline FnArgs - Arguments for a markdown inlined code text view.
- Footnote
DefFn Args - Arguments for a markdown footnote definition view.
- Footnote
RefFn Args - Arguments for a markdown footnote reference view.
- Heading
FnArgs - Arguments for a markdown heading view.
- Image
FnArgs - Arguments for a markdown image view.
- Link
Args - Arguments for the
LINK_EVENT. - Link
FnArgs - Arguments for a markdown inlined link view.
- List
FnArgs - Arguments for a markdown list view.
- List
Item Bullet FnArgs - Arguments for a markdown list item bullet, check mark or number.
- List
Item FnArgs - Arguments for a markdown list item view.
- Markdown
WRender markdown styled text.- Markdown
Style - Markdown text run style.
- Panel
FnArgs - Arguments for a markdown panel.
- Paragraph
FnArgs - Arguments for a markdown paragraph view.
- Rule
FnArgs - Arguments for a markdown rule view.
- Table
Cell FnArgs - Arguments for a markdown table cell view.
- Table
FnArgs - Arguments for a markdown table view.
- Text
FnArgs - Arguments for a markdown text view.
Enums§
- Heading
Level - Image
Resolver - Markdown image resolver.
- Link
Resolver - Markdown link resolver.
Statics§
- LINK_
EVENT - Event raised by markdown links when clicked.
Traits§
- Widget
Info Ext - Markdown extension methods for widget info.
Functions§
- anchor
PSet a label that identifies the widget in the context of the parent markdown.- block_
quote_ fn PWidget function that convertsBlockQuoteFnArgsto widgets.- code_
block_ fn PWidget function that convertsCodeBlockFnArgsto widgets.- code_
inline_ fn PWidget function that convertsCodeInlineFnArgsto widgets.- footnote_
def_ fn PWidget function that convertsFootnoteDefFnArgsto widgets.- footnote_
ref_ fn PWidget function that convertsFootnoteRefFnArgsto widgets.- heading_
anchor - Generate an anchor label for a header.
- heading_
fn PWidget function that convertsHeadingFnArgsto widgets.- image_
fn PWidget function that convertsImageFnArgsto widgets.- image_
resolver PMarkdown image resolver.- link_fn
PWidget function that convertsLinkFnArgsto widgets.- link_
resolver PMarkdown link resolver.- link_
scroll_ mode PScroll-to mode used by anchor links.- list_fn
PWidget function that convertsListFnArgsto widgets.- list_
item_ bullet_ fn PWidget function that convertsListItemBulletFnArgsto widgets.- list_
item_ fn PWidget function that convertsListItemFnArgsto widgets.- on_link
PMarkdown link click.- on_
pre_ link PPreviewon_linkevent.- panel_
fn PWidget function that convertsPanelFnArgsto a widget.- paragraph_
fn PWidget function that convertsParagraphFnArgsto widgets.- rule_fn
PWidget function that convertsRuleFnArgsto widgets.- table_
fn PWidget function that convertsTableFnArgsto widgets.- text_fn
PWidget function that convertsTextFnArgsto widgets.