pub struct MarkdownTheme {Show 16 fields
pub heading: StyleFn,
pub link: StyleFn,
pub link_url: StyleFn,
pub code: StyleFn,
pub code_block: StyleFn,
pub code_block_border: StyleFn,
pub quote: StyleFn,
pub quote_border: StyleFn,
pub hr: StyleFn,
pub list_bullet: StyleFn,
pub bold: StyleFn,
pub italic: StyleFn,
pub strikethrough: StyleFn,
pub underline: StyleFn,
pub highlight_code: Option<HighlightFn>,
pub code_block_indent: String,
}Expand description
Theme functions for markdown elements. Each function takes text and returns styled text with ANSI codes.
Fields§
§heading: StyleFn§link: StyleFn§link_url: StyleFn§code: StyleFn§code_block: StyleFn§code_block_border: StyleFn§quote: StyleFn§quote_border: StyleFn§hr: StyleFn§list_bullet: StyleFn§bold: StyleFn§italic: StyleFn§strikethrough: StyleFn§underline: StyleFn§highlight_code: Option<HighlightFn>If set, used for syntax-highlighted code blocks.
code_block_indent: StringPrefix applied to each rendered code block line (default: " ").
Implementations§
Source§impl MarkdownTheme
impl MarkdownTheme
Auto Trait Implementations§
impl !RefUnwindSafe for MarkdownTheme
impl !Send for MarkdownTheme
impl !Sync for MarkdownTheme
impl !UnwindSafe for MarkdownTheme
impl Freeze for MarkdownTheme
impl Unpin for MarkdownTheme
impl UnsafeUnpin for MarkdownTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more