pub struct InlineImageConfig {
pub keep_inline_images_in: Vec<String>,
}Expand description
Inline image configuration that specifies contexts where images remain as markdown links.
This is a wrapper type that provides semantic clarity for the vector of element names where inline images should be preserved.
Fields§
§keep_inline_images_in: Vec<String>HTML elements where images should remain as markdown links (not converted to alt text)
Implementations§
Source§impl InlineImageConfig
impl InlineImageConfig
Sourcepub const fn from_elements(elements: Vec<String>) -> Self
pub const fn from_elements(elements: Vec<String>) -> Self
Create a new inline image configuration from a list of element names.
§Arguments
elements- A vector of HTML element names where inline images should be kept
Sourcepub fn add_element(&mut self, element: String)
pub fn add_element(&mut self, element: String)
Add an element name to the list of elements where images are kept inline.
§Arguments
element- The HTML element name to add (e.g., “p”, “div”)
Trait Implementations§
Source§impl Clone for InlineImageConfig
impl Clone for InlineImageConfig
Source§fn clone(&self) -> InlineImageConfig
fn clone(&self) -> InlineImageConfig
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 moreSource§impl Debug for InlineImageConfig
impl Debug for InlineImageConfig
Auto Trait Implementations§
impl Freeze for InlineImageConfig
impl RefUnwindSafe for InlineImageConfig
impl Send for InlineImageConfig
impl Sync for InlineImageConfig
impl Unpin for InlineImageConfig
impl UnsafeUnpin for InlineImageConfig
impl UnwindSafe for InlineImageConfig
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