pub struct PipelineConfig {
pub markdown_gfm: Option<bool>,
pub pretty_code: Option<PrettyCodeOptions>,
pub math_engine: Option<MathEngine>,
pub copy_linked_files: Option<CopyLinkedFilesOptions>,
pub emoji: Option<bool>,
pub autolink_headings: Option<bool>,
pub math: Option<bool>,
pub pretty_code_enabled: Option<bool>,
pub mermaid: Option<MermaidOptions>,
pub mermaid_enabled: Option<bool>,
}Expand description
Top-level config consumed by crate::Pipeline::with_defaults_for.
All fields are optional; the empty config (PipelineConfig::default())
reproduces the historical Pipeline::with_defaults() behavior.
Fields§
§markdown_gfm: Option<bool>When false, append the disable-gfm transformer that strips GFM
extensions (tables, strikethrough, autolinks, task lists).
pretty_code: Option<PrettyCodeOptions>Pretty-code theme + multi-mode settings. None keeps the bundled
defaults (Catppuccin Latte/Mocha pair, dark primary).
math_engine: Option<MathEngine>LaTeX rendering engine. None -> MathEngine::Katex.
copy_linked_files: Option<CopyLinkedFilesOptions>When Some, append the copy-linked-files transformer with the
supplied paths.
emoji: Option<bool>When Some(false), do not push the Emoji transformer. None
or Some(true) keeps the default behaviour (transformer added
when the emoji feature is on). Used by the plugin gate to drop
the native transformer when the user prefers remark-emoji.
autolink_headings: Option<bool>Same shape for the AutolinkHeadings transformer. Set to
Some(false) when the user prefers rehype-slug /
rehype-autolink-headings.
math: Option<bool>Same shape for the Math transformer. Set to Some(false) when
the user prefers remark-math / rehype-katex / rehype-mathjax.
pretty_code_enabled: Option<bool>Same shape for the PrettyCode transformer. Set to Some(false)
when the user prefers rehype-pretty-code / shiki.
mermaid: Option<MermaidOptions>Mermaid render config. None keeps the bundled defaults
(light + dark theme pair, htmlLabels:false, responsive SVG,
centered labels).
mermaid_enabled: Option<bool>Same shape for the Mermaid transformer. Some(false) drops the
transformer (mermaid blocks left as code fences).
Trait Implementations§
Source§impl Clone for PipelineConfig
impl Clone for PipelineConfig
Source§fn clone(&self) -> PipelineConfig
fn clone(&self) -> PipelineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PipelineConfig
impl Debug for PipelineConfig
Source§impl Default for PipelineConfig
impl Default for PipelineConfig
Source§fn default() -> PipelineConfig
fn default() -> PipelineConfig
Source§impl<'de> Deserialize<'de> for PipelineConfigwhere
PipelineConfig: Default,
impl<'de> Deserialize<'de> for PipelineConfigwhere
PipelineConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnsafeUnpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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