pub struct PmcMarkdownConverter { /* private fields */ }Expand description
PMC to Markdown converter
Implementations§
Source§impl PmcMarkdownConverter
impl PmcMarkdownConverter
Sourcepub fn new() -> PmcMarkdownConverter
pub fn new() -> PmcMarkdownConverter
Create a new converter with default configuration
Sourcepub fn with_config(config: MarkdownConfig) -> PmcMarkdownConverter
pub fn with_config(config: MarkdownConfig) -> PmcMarkdownConverter
Create a converter with custom configuration
Sourcepub fn with_include_metadata(self, include: bool) -> PmcMarkdownConverter
pub fn with_include_metadata(self, include: bool) -> PmcMarkdownConverter
Set whether to include metadata
Sourcepub fn with_include_toc(self, include: bool) -> PmcMarkdownConverter
pub fn with_include_toc(self, include: bool) -> PmcMarkdownConverter
Set whether to include table of contents
Sourcepub fn with_heading_style(self, style: HeadingStyle) -> PmcMarkdownConverter
pub fn with_heading_style(self, style: HeadingStyle) -> PmcMarkdownConverter
Set heading style
Sourcepub fn with_reference_style(self, style: ReferenceStyle) -> PmcMarkdownConverter
pub fn with_reference_style(self, style: ReferenceStyle) -> PmcMarkdownConverter
Set reference style
Sourcepub fn with_max_heading_level(self, level: u8) -> PmcMarkdownConverter
pub fn with_max_heading_level(self, level: u8) -> PmcMarkdownConverter
Set maximum heading level
Sourcepub fn with_include_orcid_links(self, include: bool) -> PmcMarkdownConverter
pub fn with_include_orcid_links(self, include: bool) -> PmcMarkdownConverter
Set whether to include ORCID links
Sourcepub fn with_include_identifier_links(
self,
include: bool,
) -> PmcMarkdownConverter
pub fn with_include_identifier_links( self, include: bool, ) -> PmcMarkdownConverter
Set whether to include identifier links
Sourcepub fn with_include_figure_captions(self, include: bool) -> PmcMarkdownConverter
pub fn with_include_figure_captions(self, include: bool) -> PmcMarkdownConverter
Set whether to include figure captions
Sourcepub fn with_yaml_frontmatter(self, use_yaml: bool) -> PmcMarkdownConverter
pub fn with_yaml_frontmatter(self, use_yaml: bool) -> PmcMarkdownConverter
Set whether to use YAML frontmatter for metadata
Sourcepub fn convert_with_figures(
&self,
article: &PmcArticle,
figure_paths: Option<&HashMap<String, String>>,
) -> String
pub fn convert_with_figures( &self, article: &PmcArticle, figure_paths: Option<&HashMap<String, String>>, ) -> String
Convert a PMC article to Markdown with optional figure paths
Sourcepub fn convert(&self, article: &PmcArticle) -> String
pub fn convert(&self, article: &PmcArticle) -> String
Convert a PMC article to Markdown
Trait Implementations§
Source§impl Default for PmcMarkdownConverter
impl Default for PmcMarkdownConverter
Source§fn default() -> PmcMarkdownConverter
fn default() -> PmcMarkdownConverter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PmcMarkdownConverter
impl RefUnwindSafe for PmcMarkdownConverter
impl Send for PmcMarkdownConverter
impl Sync for PmcMarkdownConverter
impl Unpin for PmcMarkdownConverter
impl UnwindSafe for PmcMarkdownConverter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().