pub struct DefaultStyleSheet;Expand description
The default style set
This style sheet will be used by default if the user does not provide their own implementation.
Styles are:
- H1: white on cyan, bold, underlined
- H2: cyan, bold
- H3: cyan, bold, italic
- H4-H6: light cyan, italic
- code: white on black
- link: blue, underlined
- blockquote: green
- metadata block: light yellow
- heading markers: one to six
#characters - code block fences: three backticks
- raw HTML: dim
- inline math: magenta, italic
- display math: magenta
- footnote references: dim, italic
- footnote definitions: dim
- definition list terms: bold
- definition list descriptions: the surrounding style
- note alerts: blue
- tip alerts: green
- important alerts: magenta
- warning alerts: yellow
- caution alerts: red
- table headers: bold cyan
- table cells: the surrounding style
- table borders: dark gray
- image fallback text: dim and italic
Trait Implementations§
Source§impl Clone for DefaultStyleSheet
impl Clone for DefaultStyleSheet
Source§fn clone(&self) -> DefaultStyleSheet
fn clone(&self) -> DefaultStyleSheet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefaultStyleSheet
Source§impl Debug for DefaultStyleSheet
impl Debug for DefaultStyleSheet
Source§impl Default for DefaultStyleSheet
impl Default for DefaultStyleSheet
Source§fn default() -> DefaultStyleSheet
fn default() -> DefaultStyleSheet
Returns the “default value” for a type. Read more
Source§impl StyleSheet for DefaultStyleSheet
impl StyleSheet for DefaultStyleSheet
Source§fn code(&self) -> Style
fn code(&self) -> Style
Style for inline
code spans and fenced code blocks when syntax highlighting is disabled.Source§fn link(&self) -> Style
fn link(&self) -> Style
Style for an inline or reference link’s visible label and appended destination.
Source§fn blockquote(&self) -> Style
fn blockquote(&self) -> Style
Base style applied to blockquotes (
> prefix and body text).Source§fn heading_meta(&self) -> Style
fn heading_meta(&self) -> Style
Style for heading attribute metadata appended to the heading text.
Source§fn metadata_block(&self) -> Style
fn metadata_block(&self) -> Style
Style for metadata blocks (front matter).
Source§fn heading_marker(&self, level: u8) -> &str
fn heading_marker(&self, level: u8) -> &str
Marker displayed before a Markdown heading. Read more
Source§fn code_block_fence(&self) -> &str
fn code_block_fence(&self) -> &str
Delimiter displayed above and below block code. Read more
Source§fn math_inline(&self) -> Style
fn math_inline(&self) -> Style
Style for inline math (
$...$).Source§fn math_display(&self) -> Style
fn math_display(&self) -> Style
Style for display math (
$$...$$).Source§fn footnote_ref(&self) -> Style
fn footnote_ref(&self) -> Style
Style for footnote references, rendered as
[label].Source§fn footnote_def(&self) -> Style
fn footnote_def(&self) -> Style
Style for footnote definitions, including the
[label]: prefix.Source§fn definition_term(&self) -> Style
fn definition_term(&self) -> Style
Style for definition list terms.
Source§fn definition_description(&self) -> Style
fn definition_description(&self) -> Style
Style for definition list descriptions, including the
: prefix.Source§fn alert_icon(&self, kind: AlertKind) -> &str
fn alert_icon(&self, kind: AlertKind) -> &str
Icon displayed before a GFM alert label. Read more
Source§fn alert_label(&self, kind: AlertKind) -> &str
fn alert_label(&self, kind: AlertKind) -> &str
Label displayed after a GFM alert icon. Read more
Source§fn table_header(&self) -> Style
fn table_header(&self) -> Style
Style patched onto cells in the table header row. Read more
Source§fn table_cell(&self) -> Style
fn table_cell(&self) -> Style
Style patched onto ordinary table cells. Read more
Source§fn table_border(&self) -> Style
fn table_border(&self) -> Style
Style for the Unicode box-drawing characters around table cells. Read more
Auto Trait Implementations§
impl Freeze for DefaultStyleSheet
impl RefUnwindSafe for DefaultStyleSheet
impl Send for DefaultStyleSheet
impl Sync for DefaultStyleSheet
impl Unpin for DefaultStyleSheet
impl UnsafeUnpin for DefaultStyleSheet
impl UnwindSafe for DefaultStyleSheet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more