pub struct MarkdownRenderOptions<'a> {
pub asset_urls: Option<&'a BTreeMap<AssetId, Url>>,
pub math_delimiters: MathDelimiters,
pub use_inline_html_for_sized_images: bool,
pub tight_lists: bool,
pub processing_rules: MarkdownProcessingRules,
}Expand description
Options for Markdown rendering.
Fields§
§asset_urls: Option<&'a BTreeMap<AssetId, Url>>Optional mapping from asset id to a resolved URL. If provided, this takes precedence over IR asset variants/source.
math_delimiters: MathDelimitersMath delimiter syntax to use for LaTeX math.
Default is Dollar ($…$ and $$…$$).
use_inline_html_for_sized_images: boolWhether to use inline HTML (<img> tags) for images with dimensions.
Standard Markdown doesn’t support width/height attributes on images.
When true, images with width/height attrs will be rendered as <img> tags.
When false (default), dimensions are ignored and standard  syntax is used.
tight_lists: boolWhether lists should be tight (no blank lines between items). Default is true. Set to false for loose lists with blank lines.
processing_rules: MarkdownProcessingRulesMarkdown post-processing rules. Applied after serialization to handle platform-specific editor quirks.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MarkdownRenderOptions<'a>
impl<'a> RefUnwindSafe for MarkdownRenderOptions<'a>
impl<'a> Send for MarkdownRenderOptions<'a>
impl<'a> Sync for MarkdownRenderOptions<'a>
impl<'a> Unpin for MarkdownRenderOptions<'a>
impl<'a> UnsafeUnpin for MarkdownRenderOptions<'a>
impl<'a> UnwindSafe for MarkdownRenderOptions<'a>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.