Reusable Markdown editing chrome components for MoUI (outline, find/replace, format palette, document info, HTML export)
Dependencies
wzzc-dev/moui_markdown does not have a README file
pub(all) struct MarkdownDocumentInfo {
character_count : Int
heading_count : Int
paragraph_count : Int
list_item_count : Int
task_count : Int
checked_task_count : Int
quote_count : Int
code_block_count : Int
table_count : Int
link_count : Int
image_count : Int
footnote_reference_count : Int
footnote_definition_count : Int
} derive(Eq, ToJson, Debug)fn markdown_document_info_from_parts(source : String, blocks : Array[MarkdownEditorBlock]) -> MarkdownDocumentInfofn[Msg] markdown_document_info_panel(theme~ : Theme, info~ : MarkdownDocumentInfo, word_count~ : Int, line_count~ : Int, reading_time_label~ : String, height~ : Double, width? : Double, title? : String, words_label? : String, characters_label? : String, lines_label? : String, reading_label? : String, headings_label? : String, paragraphs_label? : String, list_items_label? : String, tasks_label? : String, quotes_label? : String, code_blocks_label? : String, tables_label? : String, links_label? : String, images_label? : String, footnotes_label? : String) -> View[Msg]fn markdown_find_active_index(matches : Array[TextRange], selection : MarkdownEditorSelection) -> Intfn[Msg] markdown_find_bar(theme~ : Theme, query~ : String, replace_text~ : String, options~ : MarkdownFindOptions, status_label~ : String, on_query_input~ : (String) -> Msg, on_replace_input~ : (String) -> Msg, on_submit_query~ : Msg, on_submit_replace~ : Msg, on_toggle_case_sensitive~ : Msg, on_toggle_whole_word~ : Msg, on_toggle_regex~ : Msg, on_previous~ : Msg, on_next~ : Msg, on_replace_current~ : Msg, on_replace_all~ : Msg, on_close~ : Msg, width~ : Double, find_label? : String, replace_label? : String, search_placeholder? : String, replacement_placeholder? : String, replace_button_label? : String, replace_all_button_label? : String, match_case_tooltip? : String, whole_word_tooltip? : String, regex_tooltip? : String, previous_tooltip? : String, next_tooltip? : String, close_tooltip? : String, key_prefix? : String) -> View[Msg]fn markdown_find_live_update_index(matches : Array[TextRange], selection : MarkdownEditorSelection) -> Intfn markdown_find_matches(source : String, query : String, options? : MarkdownFindOptions) -> Array[TextRange]fn markdown_find_previous_index(matches : Array[TextRange], selection : MarkdownEditorSelection) -> Intfn markdown_find_query_from_selection(source : String, selection : MarkdownEditorSelection) -> String?fn markdown_find_seed_from_caret_word(source : String, selection : MarkdownEditorSelection) -> MarkdownFindSeed?fn markdown_find_status_label(query : String, matches : Array[TextRange], selection : MarkdownEditorSelection, options? : MarkdownFindOptions) -> Stringfn markdown_folded_outline(items : Array[MarkdownEditorOutlineItem], folded_starts : Array[Int]) -> Array[MarkdownEditorOutlineItem]fn[Msg] markdown_format_palette(theme~ : Theme, query~ : String, items~ : Array[MarkdownPaletteItem], on_query_input~ : (String) -> Msg, on_submit~ : Msg, on_action~ : (String) -> Msg, on_done~ : Msg, width~ : Double, title? : String, filter_placeholder? : String, done_label? : String, empty_label? : String, key_prefix? : String) -> View[Msg]fn markdown_html_escape_attribute(text : String) -> Stringfn markdown_html_escape_text(text : String) -> Stringfn markdown_outline_indent_width(level : Int) -> Doublefn markdown_outline_item_is_active(full_outline : Array[MarkdownEditorOutlineItem], item : MarkdownEditorOutlineItem, active_index : Int) -> Boolfn[Msg] markdown_outline_panel(theme~ : Theme, outline~ : Array[MarkdownEditorOutlineItem], folded_starts~ : Array[Int], caret~ : Int, on_jump~ : (Int) -> Msg, on_toggle_fold~ : (Int) -> Msg, height~ : Double, width? : Double, title? : String, empty_label? : String) -> View[Msg]fn markdown_outline_truncate_title(title : String) -> Stringfn markdown_replace_source_range(source : String, range : TextRange, replacement : String) -> StringInstall
Download zipReusable Markdown editing chrome components for MoUI (outline, find/replace, format palette, document info, HTML export)
Dependencies