pub struct OrgOutputFormat;Expand description
Renders processed citations and bibliography entries as org-mode markup.
Does not override OutputFormat::visible_runs: org-mode’s /.../,
*...*, ~...~, ^...^ markers are unescaped single characters (see
OutputFormat::text below), so a data field containing a literal
instance of one is already indistinguishable from markup in the rendered
output itself — a lexer here could not resolve that ambiguity any better
than the renderer did. Boundary/dedup logic for this backend falls back
to the raw text default, a known, documented gap (see bean csl26-ztxq).
Trait Implementations§
Source§impl Clone for OrgOutputFormat
impl Clone for OrgOutputFormat
Source§fn clone(&self) -> OrgOutputFormat
fn clone(&self) -> OrgOutputFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for OrgOutputFormat
impl Default for OrgOutputFormat
Source§fn default() -> OrgOutputFormat
fn default() -> OrgOutputFormat
Source§impl OutputFormat for OrgOutputFormat
impl OutputFormat for OrgOutputFormat
Source§fn heading(&self, level: u8, content: Self::Output) -> Self::Output
fn heading(&self, level: u8, content: Self::Output) -> Self::Output
Render a heading using org-mode stars (*, **, …).
Source§fn emph(&self, content: Self::Output) -> Self::Output
fn emph(&self, content: Self::Output) -> Self::Output
Render content with emphasis (italics in org-mode: /text/).
Source§fn strong(&self, content: Self::Output) -> Self::Output
fn strong(&self, content: Self::Output) -> Self::Output
Render content with strong emphasis (bold in org-mode: text).
Source§fn small_caps(&self, content: Self::Output) -> Self::Output
fn small_caps(&self, content: Self::Output) -> Self::Output
Render content in small capitals (org-mode uses text).
Source§fn link(&self, url: &str, content: Self::Output) -> Self::Output
fn link(&self, url: &str, content: Self::Output) -> Self::Output
Render a hyperlink in org-mode format: [[url][text]]
Source§fn text(&self, s: &str) -> Self::Output
fn text(&self, s: &str) -> Self::Output
Source§fn join(&self, items: Vec<Self::Output>, delimiter: &str) -> Self::Output
fn join(&self, items: Vec<Self::Output>, delimiter: &str) -> Self::Output
Source§fn finish(&self, output: Self::Output) -> String
fn finish(&self, output: Self::Output) -> String
Source§fn superscript(&self, content: Self::Output) -> Self::Output
fn superscript(&self, content: Self::Output) -> Self::Output
Source§fn quote(&self, content: Self::Output, marks: &QuoteMarks) -> Self::Output
fn quote(&self, content: Self::Output, marks: &QuoteMarks) -> Self::Output
Source§fn affix(
&self,
prefix: &str,
content: Self::Output,
suffix: &str,
) -> Self::Output
fn affix( &self, prefix: &str, content: Self::Output, suffix: &str, ) -> Self::Output
Source§fn inner_affix(
&self,
prefix: &str,
content: Self::Output,
suffix: &str,
) -> Self::Output
fn inner_affix( &self, prefix: &str, content: Self::Output, suffix: &str, ) -> Self::Output
Source§fn wrap_punctuation(
&self,
wrap: &WrapPunctuation,
content: Self::Output,
marks: &QuoteMarks,
script: ScriptClass,
realization: Option<&PunctuationRealization>,
) -> Self::Output
fn wrap_punctuation( &self, wrap: &WrapPunctuation, content: Self::Output, marks: &QuoteMarks, script: ScriptClass, realization: Option<&PunctuationRealization>, ) -> Self::Output
Source§fn semantic(&self, _class: &str, content: Self::Output) -> Self::Output
fn semantic(&self, _class: &str, content: Self::Output) -> Self::Output
Source§fn annotation(&self, content: Self::Output) -> Self::Output
fn annotation(&self, content: Self::Output) -> Self::Output
Source§fn entry(
&self,
_id: &str,
content: Self::Output,
_url: Option<&str>,
_metadata: &ProcEntryMetadata,
) -> Self::Output
fn entry( &self, _id: &str, content: Self::Output, _url: Option<&str>, _metadata: &ProcEntryMetadata, ) -> Self::Output
Source§fn quote_marks<'a>(
&self,
depth: usize,
marks: &'a QuoteMarks,
) -> (&'a str, &'a str)
fn quote_marks<'a>( &self, depth: usize, marks: &'a QuoteMarks, ) -> (&'a str, &'a str)
Source§fn quote_with_depth(
&self,
content: Self::Output,
depth: usize,
marks: &QuoteMarks,
) -> Self::Output
fn quote_with_depth( &self, content: Self::Output, depth: usize, marks: &QuoteMarks, ) -> Self::Output
Source§fn block_quote(&self, content: Self::Output) -> Self::Output
fn block_quote(&self, content: Self::Output) -> Self::Output
Source§fn bullet_list(&self, items: Vec<Self::Output>) -> Self::Output
fn bullet_list(&self, items: Vec<Self::Output>) -> Self::Output
Source§fn ordered_list(&self, items: Vec<Self::Output>) -> Self::Output
fn ordered_list(&self, items: Vec<Self::Output>) -> Self::Output
Source§fn unnumbered_heading(&self, level: u8, content: Self::Output) -> Self::Output
fn unnumbered_heading(&self, level: u8, content: Self::Output) -> Self::Output
Source§fn code_block(&self, _lang: Option<&str>, content: Self::Output) -> Self::Output
fn code_block(&self, _lang: Option<&str>, content: Self::Output) -> Self::Output
Source§fn inline_code(&self, content: Self::Output) -> Self::Output
fn inline_code(&self, content: Self::Output) -> Self::Output
Source§fn hard_break(&self) -> Self::Output
fn hard_break(&self) -> Self::Output
Source§fn semantic_with_attributes(
&self,
class: &str,
content: Self::Output,
_attributes: &[SemanticAttribute],
) -> Self::Output
fn semantic_with_attributes( &self, class: &str, content: Self::Output, _attributes: &[SemanticAttribute], ) -> Self::Output
Source§fn citation(&self, _ids: Vec<String>, content: Self::Output) -> Self::Output
fn citation(&self, _ids: Vec<String>, content: Self::Output) -> Self::Output
Source§fn visible_runs(&self, fragment: &str) -> Vec<Range<usize>>
fn visible_runs(&self, fragment: &str) -> Vec<Range<usize>>
fragment that are visible (non-markup) text, in order. Read more