Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML option for -p --preserve-tabs #1743

Closed
sjackman opened this issue Nov 5, 2014 · 8 comments
Closed

YAML option for -p --preserve-tabs #1743

sjackman opened this issue Nov 5, 2014 · 8 comments

Comments

@sjackman
Copy link

sjackman commented Nov 5, 2014

I'm using pandoc via the R package rmarkdown, so I can't set command line options of pandoc, but I can set YAML configuration options. Is there an equivalent YAML option to get the behaviour of --preserve-tabs?

@jgm
Copy link
Owner

jgm commented Nov 5, 2014

+++ Shaun Jackman [Nov 05 14 14:23 ]:

I'm using pandoc via the R package rmarkdown, so I can't set command
line options of pandoc, but I can set YAML configuration options. Is
there an equivalent YAML option to get the behaviour of
--preserve-tabs?

No.

@sjackman
Copy link
Author

sjackman commented Nov 5, 2014

Feature request?

@jjallaire
Copy link

You can add arbitrary pandoc command line arguments using YAML as described here http://rmarkdown.rstudio.com/html_document_format.html#pandoc-arguments

@sjackman
Copy link
Author

sjackman commented Nov 6, 2014

Success! Thanks, JJ.

output:
  html_document:
    pandoc_args: "--preserve-tabs"

@sjackman
Copy link
Author

sjackman commented Nov 6, 2014

@jgm This pandoc_args solution solves my original problem. So, feel free to close this issue if you like. I do think it would be helpful to be able to set arbitrary pandoc options from the YAML header of a markdown file.

@sjackman
Copy link
Author

sjackman commented Nov 6, 2014

I'm assuming here that output / html_document / pandoc_args is specific to rmarkdown::render.

@jjallaire
Copy link

Yes indeed it is.

@mb21
Copy link
Collaborator

mb21 commented Feb 2, 2019

Closing in favour of #4627

@mb21 mb21 closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants