pub struct RenderOptions {
pub html_image_tags: bool,
pub mermaid: bool,
pub toc_depth: Option<u8>,
pub layout_assets: Vec<String>,
pub layout_fonts: Vec<String>,
}Expand description
The pipeline flags mdcast render exposes, minus the ones that are
meaningless over HTTP (--out, --assets DIR).
Fields§
--html-image-tags: rewrite <img src="X"> / <image path="X"> to
 before splitting.
mermaid: bool--mermaid: render ```mermaid fences to SVG before
splitting.
toc_depth: Option<u8>--toc-depth N: request a table of contents at heading depth 1-6.
layout_assets: Vec<String>--layout-asset KEY (repeatable): ResolvedDoc.assets entries a
typst layout reaches via asset-path.
layout_fonts: Vec<String>--layout-font KEY (repeatable): ResolvedDoc.fonts entries to
register with the typst font book.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§impl<'de> Deserialize<'de> for RenderOptions
impl<'de> Deserialize<'de> for RenderOptions
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RenderOptions
Source§impl PartialEq for RenderOptions
impl PartialEq for RenderOptions
Source§impl Serialize for RenderOptions
impl Serialize for RenderOptions
impl StructuralPartialEq for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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