pub struct AutolinkOptions {
pub behavior: AutolinkBehavior,
pub properties: Option<Map<String, Value>>,
pub content: Option<Value>,
pub group: Option<Value>,
pub heading_properties: Option<Map<String, Value>>,
pub test: Option<TagNames>,
}Expand description
rehype-autolink-headings’ options, JSON values only.
Fields§
§behavior: AutolinkBehaviorWhere the link goes: in the heading first or last, around its content, or before or after it.
properties: Option<Map<String, Value>>The link’s properties, as hast names them; ariaHidden and tabIndex: -1 for
prepend and append when left out.
content: Option<Value>hast content of the link, one node or a list; <span class="icon icon-link"> when
left out, except for wrap, which appends it to the heading’s content.
group: Option<Value>A hast element wrapping the heading and its link, for before and after.
heading_properties: Option<Map<String, Value>>Properties set on each linked heading.
test: Option<TagNames>The tag names of the headings to link; every heading when left out.
Trait Implementations§
Source§impl Clone for AutolinkOptions
impl Clone for AutolinkOptions
Source§impl Debug for AutolinkOptions
impl Debug for AutolinkOptions
Source§impl Default for AutolinkOptions
impl Default for AutolinkOptions
Source§impl<'de> Deserialize<'de> for AutolinkOptionswhere
AutolinkOptions: Default,
impl<'de> Deserialize<'de> for AutolinkOptionswhere
AutolinkOptions: 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AutolinkOptions
impl RefUnwindSafe for AutolinkOptions
impl Send for AutolinkOptions
impl Sync for AutolinkOptions
impl Unpin for AutolinkOptions
impl UnsafeUnpin for AutolinkOptions
impl UnwindSafe for AutolinkOptions
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