pub struct Settings {
pub text_size: Pixels,
pub h1_size: Pixels,
pub h2_size: Pixels,
pub h3_size: Pixels,
pub h4_size: Pixels,
pub h5_size: Pixels,
pub h6_size: Pixels,
pub code_size: Pixels,
pub spacing: Pixels,
pub style: Style,
}Available on crate feature
markdown only.Expand description
Configuration controlling Markdown rendering in view.
Fields§
§text_size: PixelsThe base text size.
h1_size: PixelsThe text size of level 1 heading.
h2_size: PixelsThe text size of level 2 heading.
h3_size: PixelsThe text size of level 3 heading.
h4_size: PixelsThe text size of level 4 heading.
h5_size: PixelsThe text size of level 5 heading.
h6_size: PixelsThe text size of level 6 heading.
code_size: PixelsThe text size used in code blocks.
spacing: PixelsThe spacing to be used between elements.
style: StyleThe styling of the Markdown.
Implementations§
Trait Implementations§
impl Copy for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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