Skip to content

Commit

Permalink
Merge pull request #38 from ehoeve/feature/reference-doc-fix
Browse files Browse the repository at this point in the history
Fix for issue #31
  • Loading branch information
oli-obk authored Feb 24, 2021
2 parents 6ac3305 + 8367641 commit 747a055
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ pub enum PandocOption {
/// --reference-odt=FILENAME
ReferenceOdt(PathBuf),
/// --reference-docx=FILENAME
#[deprecated(note = "replaced by ReferenceDoc")]
ReferenceDocx(PathBuf),
/// --reference-doc=FILENAME
ReferenceDoc(PathBuf),
/// --epub-stylesheet=FILENAME
EpubStylesheet(PathBuf),
/// --epub-cover-image=FILENAME
Expand Down Expand Up @@ -348,9 +351,13 @@ impl PandocOption {
TitlePrefix(ref s) => pandoc.args(&[format!("--title-prefix={}", s)]),
Css(ref url) => pandoc.args(&[format!("--css={}", url)]),
ReferenceOdt(ref file) => pandoc.args(&[format!("--reference-odt={}", file.display())]),
#[allow(deprecated)]
ReferenceDocx(ref file) => {
pandoc.args(&[&format!("--reference-docx={}", file.display())])
}
ReferenceDoc(ref file) => {
pandoc.args(&[&format!("--reference-doc={}", file.display())])
}
EpubStylesheet(ref file) => {
pandoc.args(&[&format!("--epub-stylesheet={}", file.display())])
}
Expand Down

0 comments on commit 747a055

Please sign in to comment.