pub struct ExternalLinks {
pub target: Option<String>,
pub rel: Option<Tokens>,
pub protocols: Option<Vec<String>>,
pub properties: Option<Map<String, Value>>,
pub content: Option<Value>,
pub content_properties: Option<Map<String, Value>>,
}Expand description
html.externalLinks: rel, target and more on links to other sites, as
rehype-external-links adds them; options named as it names them, JSON values only.
Fields§
§target: Option<String>The target of each external link, such as _blank.
rel: Option<Tokens>The rel of each external link: a list, or tokens separated by white space;
nofollow when left out or empty, none for an empty list.
protocols: Option<Vec<String>>The protocols of absolute URLs that count as external; http and https when left
out. A protocol-relative //… URL always counts.
properties: Option<Map<String, Value>>More properties for each external link, as hast names them.
content: Option<Value>hast content appended to each external link in a <span>: one node or a list.
content_properties: Option<Map<String, Value>>The properties of that <span>.
Trait Implementations§
Source§impl Clone for ExternalLinks
impl Clone for ExternalLinks
Source§impl Debug for ExternalLinks
impl Debug for ExternalLinks
Source§impl Default for ExternalLinks
impl Default for ExternalLinks
Source§impl<'de> Deserialize<'de> for ExternalLinkswhere
ExternalLinks: Default,
impl<'de> Deserialize<'de> for ExternalLinkswhere
ExternalLinks: 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
Source§impl Plugin for ExternalLinks
impl Plugin for ExternalLinks
Source§impl Transform for ExternalLinks
impl Transform for ExternalLinks
fn input(&self) -> TreeKind
fn output(&self) -> TreeKind
fn run<'a>( &self, tree: Tree<'a>, _file: &mut File, alloc: &'a Allocator, ) -> Result<Tree<'a>, Error>
Auto Trait Implementations§
impl Freeze for ExternalLinks
impl RefUnwindSafe for ExternalLinks
impl Send for ExternalLinks
impl Sync for ExternalLinks
impl Unpin for ExternalLinks
impl UnsafeUnpin for ExternalLinks
impl UnwindSafe for ExternalLinks
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