pub struct Raw {
pub pass_through: Vec<String>,
pub tagfilter: bool,
}Expand description
html.raw: reparse raw HTML and fix nesting through the HTML parser; options named as
hast-util-raw names them.
Fields§
§pass_through: Vec<String>Node types, unknown to hast, to copy through as they are; their children are reparsed on their own.
tagfilter: boolEscape the opening < of the tags GFM’s tagfilter disallows in raw nodes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Raw
impl<'de> Deserialize<'de> for Raw
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 Transform for Raw
impl Transform for Raw
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 Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnsafeUnpin for Raw
impl UnwindSafe for Raw
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