pub struct Config { /* private fields */ }Expand description
Configuration for the markdown reader.
Defaults:
- pager enabled
- width uses glamour’s default word wrap
- style set to
"dark"
§Example
use glow::Config;
let config = Config::new()
.pager(false)
.width(80)
.style("light");Implementations§
Source§impl Config
impl Config
Sourcepub fn line_numbers(self, enabled: bool) -> Self
pub fn line_numbers(self, enabled: bool) -> Self
Enables or disables line numbers in code blocks.
Sourcepub fn preserve_newlines(self, enabled: bool) -> Self
pub fn preserve_newlines(self, enabled: bool) -> Self
Enables or disables preserving newlines in output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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