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

memor.html #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

darkestfloyd
Copy link

Basic html document support for memor.

At this time, the header and footer HTML code are generated on the fly and passed to html_document using the includes argument (wrapper function for --include-in-header, --include-after-body arguments of pandoc). This is done to workaround the fact that rmarkdown disables bootstrap themes, by default, for custom templates. I have also added profile support, which needs to be tested.

- Adding a custom template is almost not possible if we want to keep
  the bootstrap themes. Look at `template` under `?rmarkdown::html_document`
  For this reason, the header and footer HTML is generated on the fly and
  saved in a temp file. These files are then passed to `pandoc` in it's
  `include-in-header` and `include-after-body` argument.
  Also see pandoc.org/MANUAL.html#general-writer-options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant