[−][src]Struct comrak::ComrakParseOptions
Options for parser functions.
Fields
smart: bool
Punctuation (quotes, full-stops and hyphens) are converted into 'smart' punctuation.
let mut options = ComrakOptions::default(); assert_eq!(markdown_to_html("'Hello,' \"world\" ...", &options), "<p>'Hello,' "world" ...</p>\n"); options.parse.smart = true; assert_eq!(markdown_to_html("'Hello,' \"world\" ...", &options), "<p>‘Hello,’ “world” …</p>\n");
default_info_string: Option<String>
The default info string for fenced code blocks.
let mut options = ComrakOptions::default(); assert_eq!(markdown_to_html("```\nfn hello();\n```\n", &options), "<pre><code>fn hello();\n</code></pre>\n"); options.parse.default_info_string = Some("rust".into()); assert_eq!(markdown_to_html("```\nfn hello();\n```\n", &options), "<pre><code class=\"language-rust\">fn hello();\n</code></pre>\n");
Trait Implementations
impl Clone for ComrakParseOptions
[src]
fn clone(&self) -> ComrakParseOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ComrakParseOptions
[src]
impl Default for ComrakParseOptions
[src]
fn default() -> ComrakParseOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ComrakParseOptions
impl Send for ComrakParseOptions
impl Sync for ComrakParseOptions
impl Unpin for ComrakParseOptions
impl UnwindSafe for ComrakParseOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,