Enum pandoc::PandocOption [−][src]
Variants (Non-exhaustive)
DataDir(PathBuf)
–data-dir=DIRECTORY
–strict
-R –parse-raw
-S –smart
–old-dashes
BaseHeaderLevel(u32)
replaced by ShiftHeadingLevelBy
–base-header-level=NUMBER
ShiftHeadingLevelBy(i32)
–shift-heading-level-by=NUMBER,
IndentedCodeClasses(String)
–indented-code-classes=STRING
Filter(PathBuf)
-F PROGRAM –filter=PROGRAM
–normalize
-p –preserve-tabs
TabStop(u32)
–tab-stop=NUMBER
TrackChanges(TrackChanges)
–track-changes=accept|reject|all
ExtractMedia(PathBuf)
–extract-media=PATH
-s –standalone
Template(PathBuf)
–template=FILENAME
-M KEY[:VALUE] –metadata=KEY[:VALUE]
-V KEY[:VALUE] –variable=KEY[:VALUE]
PrintDefaultTemplate(String)
-D FORMAT –print-default-template=FORMAT
PrintDefaultDataFile(PathBuf)
–print-default-data-file=FILE
–no-wrap
Columns(u32)
–columns=NUMBER
–toc, –table-of-contents
TableOfContentsDepth(u32)
–toc-depth=NUMBER
–no-highlight
HighlightStyle(String)
–highlight-style=STYLE
IncludeInHeader(PathBuf)
-H FILENAME –include-in-header=FILENAME
IncludeBeforeBody(PathBuf)
-B FILENAME –include-before-body=FILENAME
IncludeAfterBody(PathBuf)
-A FILENAME –include-after-body=FILENAME
–self-contained
–offline
-5 –html5
–html-q-tags
–ascii
–reference-links
–atx-headers
TopLevelDivision(Tld)
–top-level-division=
-N –number-sections
–number-offset=NUMBERS
–no-tex-ligatures
–listings
-i –incremental
SlideLevel(u32)
–slide-level=NUMBER
–section-divs
DefaultImageExtension(String)
–default-image-extension=extension
EmailObfuscation(EmailObfuscation)
–email-obfuscation=none|javascript|references
IdPrefix(String)
–id-prefix=STRING
TitlePrefix(String)
-T STRING –title-prefix=STRING
Css(URL)
-c URL –css=URL
ReferenceOdt(PathBuf)
–reference-odt=FILENAME
ReferenceDocx(PathBuf)
replaced by ReferenceDoc
–reference-docx=FILENAME
ReferenceDoc(PathBuf)
–reference-doc=FILENAME
EpubStylesheet(PathBuf)
–epub-stylesheet=FILENAME
EpubCoverImage(PathBuf)
–epub-cover-image=FILENAME
EpubMetadata(PathBuf)
–epub-metadata=FILENAME
EpubEmbedFont(PathBuf)
–epub-embed-font=FILE
EpubChapterLevel(u32)
–epub-chapter-level=NUMBER
PdfEngine(PathBuf)
–pdf-engine=PROGRAM
PdfEngineOpt(String)
–pdf-engine-opt=STRING
Bibliography(PathBuf)
–bibliography=FILE
Csl(PathBuf)
–csl=FILE
CitationAbbreviations(PathBuf)
–citation-abbreviations=FILE
–natbib
–biblatex
-mURL –latexmathml[=URL], –asciimathml[=URL]
–asciimathml[=URL]
–mathml[=URL]
–mimetex[=URL]
–webtex[=URL]
–jsmath[=URL]
–mathjax[=URL]
–katex[=URL]
KatexStylesheet(URL)
–katex-stylesheet=URL
-gladtex
–trace
–dump-args
–ignore-args
–verbose
–resource-path=PATH
RuntimeSystem(Vec<PandocRuntimeSystemOption>)
+RTS OPTIONS -RTS
In Pandoc’s “A note on security” section of the manual (link), there is a recommendation to set a heap size limit to prevent pathological corner cases.
The full list of “RTS” options can be found in the Haskell “Runtime control” section of the manual (link). The Runtime System options are way more extensive than the -M option, and cover a lot of use-cases that aren’t needed while using pandoc in a production setting.
Example Usage
let mut pandoc = pandoc::new(); pandoc.add_option(pandoc::PandocOption::RuntimeSystem(vec![ // Limit the heap size to 512 MB while processing an arbitrary input file. pandoc::PandocRuntimeSystemOption::MaximumHeapMemory("512M".to_string()), ]));
Trait Implementations
impl Clone for PandocOption
[src]
fn clone(&self) -> PandocOption
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PandocOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for PandocOption
impl Send for PandocOption
impl Sync for PandocOption
impl Unpin for PandocOption
impl UnwindSafe for PandocOption
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,