Struct CodefenceMeta
#[non_exhaustive]
pub struct CodefenceMeta<'a> { pub lang: &'a str, pub meta: &'a str, pub code: &'a str, pub sourcepos: Option<Sourcepos> }
Information about a codefence block given to the adapter implementation.
Fields
lang: &'a strName of the programming language (the first token of the info string).
meta: &'a strThe remaining codefence info string after the language token, trimmed.
code: &'a strThe block content.
sourcepos: Option<Sourcepos>Source position information for the code fence, if any.
Implementations
impl<'a> CodefenceMeta<'a>
fn new(lang: &'a str, meta: &'a str, code: &'a str, sourcepos: Option<Sourcepos>) -> SelfCreate a new
CodefenceMeta.
Trait Implementations
impl<'a> Clone for CodefenceMeta<'a>
fn clone(&self) -> Self
impl<'a> Debug for CodefenceMeta<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result