pub struct EuvMarkdown { /* private fields */ }Expand description
Complete GitHub-Flavored & Extended Markdown native document renderer composing every Markdown component, native vector EuvMermaid, and Eva-themed EuvCodeBlock.
Implementations§
Source§impl EuvMarkdown
Fluent callback and selection builders for EuvMarkdown.
impl EuvMarkdown
Fluent callback and selection builders for EuvMarkdown.
Sourcepub fn asset_base<TextValue>(self, base: TextValue) -> Self
pub fn asset_base<TextValue>(self, base: TextValue) -> Self
Sourcepub fn code_block_size_mode(self, mode: EuvCodeBlockSizeMode) -> Self
pub fn code_block_size_mode(self, mode: EuvCodeBlockSizeMode) -> Self
Sets the default inline sizing mode forwarded to fenced EuvCodeBlock blocks (EuvCodeBlockSizeMode::AutoExpand by default).
§Arguments
Self- Source Markdown renderer.EuvCodeBlockSizeMode- Code block sizing mode applied to all fenced code blocks in the document.
§Returns
Self- Updated Markdown renderer.
Sourcepub fn text_select(self, mode: TextSelectMode) -> Self
pub fn text_select(self, mode: TextSelectMode) -> Self
Sets the interactive text selection and copy mode for the Markdown document (TextSelectMode::None by default; fenced code blocks default to TextSelectMode::SelectAndCopy unless overridden here).
§Arguments
Self- Source Markdown renderer.TextSelectMode- Selection mode applied across document blocks.
§Returns
Self- Updated Markdown renderer.
Sourcepub fn selectable(self, enabled: bool) -> Self
pub fn selectable(self, enabled: bool) -> Self
Sourcepub fn on_toggle_task<CallbackFn>(self, handler: CallbackFn) -> Self
pub fn on_toggle_task<CallbackFn>(self, handler: CallbackFn) -> Self
Source§impl EuvMarkdown
impl EuvMarkdown
pub fn get_source(&self) -> &String
pub fn get_mut_source(&mut self) -> &mut String
pub fn set_source(&mut self, val: String) -> &mut Self
pub fn get_tokens(&self) -> ThemeTokens
pub fn get_mut_tokens(&mut self) -> &mut ThemeTokens
pub fn set_tokens(&mut self, val: ThemeTokens) -> &mut Self
pub fn get_mut_style(&mut self) -> &mut Option<Style>
pub fn set_style(&mut self, val: Option<Style>) -> &mut Self
pub fn get_mut_text_select(&mut self) -> &mut Option<TextSelectMode>
pub fn set_text_select(&mut self, val: Option<TextSelectMode>) -> &mut Self
pub fn get_asset_base(&self) -> &String
pub fn get_mut_asset_base(&mut self) -> &mut String
pub fn set_asset_base(&mut self, val: String) -> &mut Self
pub fn get_code_block_size_mode(&self) -> EuvCodeBlockSizeMode
pub fn get_mut_code_block_size_mode(&mut self) -> &mut EuvCodeBlockSizeMode
pub fn set_code_block_size_mode( &mut self, val: EuvCodeBlockSizeMode, ) -> &mut Self
pub fn get_mut_on_link(&mut self) -> &mut Option<MarkdownStrCallback>
pub fn set_on_link(&mut self, val: Option<MarkdownStrCallback>) -> &mut Self
pub fn get_mut_on_copy(&mut self) -> &mut Option<MarkdownStrCallback>
pub fn set_on_copy(&mut self, val: Option<MarkdownStrCallback>) -> &mut Self
pub fn get_mut_on_toggle_task( &mut self, ) -> &mut Option<Rc<dyn Fn(usize, bool) + 'static>>
pub fn set_on_toggle_task( &mut self, val: Option<Rc<dyn Fn(usize, bool) + 'static>>, ) -> &mut Self
Source§impl EuvMarkdown
impl EuvMarkdown
pub fn new(source: String, tokens: ThemeTokens) -> Self
Source§impl EuvMarkdown
Implements impl #impl_generics #struct_ident #ty_generics #where_clause.
impl EuvMarkdown
Implements impl #impl_generics #struct_ident #ty_generics #where_clause.
Trait Implementations§
Source§impl Clone for EuvMarkdown
impl Clone for EuvMarkdown
Source§impl Component for EuvMarkdown
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
impl Component for EuvMarkdown
Implements impl #impl_generics ::euv::Component for #self_type #where_clause.
Source§impl ComponentProps for EuvMarkdown
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
impl ComponentProps for EuvMarkdown
Implements impl #impl_generics ::euv::ComponentProps for #struct_ident #ty_generics #where_clause.
Source§fn init_props() -> Self
fn init_props() -> Self
Implements the init_props operation on Self.
Source§impl Debug for EuvMarkdown
impl Debug for EuvMarkdown
Source§impl Lifecycle for EuvMarkdown
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
impl Lifecycle for EuvMarkdown
Implements impl #impl_generics ::euv::Lifecycle for #self_type #where_clause.
Source§fn retention_policy(&self) -> PageRetention
fn retention_policy(&self) -> PageRetention
Source§fn on_create(&self)
fn on_create(&self)
render pass executes. Read moreSource§fn on_update(&self, _node: NodeId)
fn on_update(&self, _node: NodeId)
Source§fn on_activate(&self, _node: NodeId)
fn on_activate(&self, _node: NodeId)
Source§fn on_freeze(&self, _node: NodeId)
fn on_freeze(&self, _node: NodeId)
PageRetention::Freeze. Read moreSource§fn on_resume(&self, _node: NodeId)
fn on_resume(&self, _node: NodeId)
Source§fn on_unmount(&self, _node: NodeId)
fn on_unmount(&self, _node: NodeId)
Source§fn on_destroy(&self)
fn on_destroy(&self)
Source§fn on_error(&self, _error: &str)
fn on_error(&self, _error: &str)
Source§fn on_appear(&self)
fn on_appear(&self)
Source§fn on_disappear(&self)
fn on_disappear(&self)
Source§fn on_foreground(&self)
fn on_foreground(&self)
Source§fn on_background(&self)
fn on_background(&self)
Source§fn on_inactive(&self)
fn on_inactive(&self)
Source§fn on_terminate(&self)
fn on_terminate(&self)
Source§fn on_system_event(&self, _event: &SystemEvent)
fn on_system_event(&self, _event: &SystemEvent)
SystemEvent delivered while this component is active. Read more