Push slide changes to browser history
diff --git a/DESCRIPTION b/DESCRIPTION
index 0d87876..199637f 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
 Package: revealjs
 Type: Package
 Title: R Markdown Format for 'reveal.js' Presentations
-Version: 0.6
+Version: 0.6.0.9001
 Date: 2016-03-08
 Authors@R: c(
     person("Hakim", "El Hattab", role = c("aut", "cph"),
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index 80e36a2..5e50755 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -18,6 +18,7 @@
 #'   "convex", "concave" or "zoom")
 #' @param background_transition Slide background-transition ("default", "none",
 #'   "fade", "slide", "convex", "concave" or "zoom")
+#' @param history \code{TRUE} to push each slide change to the browser history.
 #' @param reveal_options Additional options to specify for reveal.js (see 
 #'   \href{https://github.com/hakimel/reveal.js#configuration}{https://github.com/hakimel/reveal.js#configuration}
 #'   for details).
@@ -68,6 +69,7 @@
                                   theme = "simple",
                                   transition = "default",
                                   background_transition = "default",
+                                  history = TRUE,
                                   reveal_options = NULL,
                                   highlight = "default",
                                   mathjax = "default",
@@ -129,6 +131,9 @@
   background_transition <- match.arg(background_transition, revealjs_transitions())
   args <- c(args, "--variable", paste("backgroundTransition=", background_transition, sep=""))
   
+  # history
+  args <- c(args, pandoc_variable_arg("history", jsbool(history)))
+  
   # additional reveal options
   if (is.list(reveal_options)) {
     for (option in names(reveal_options)) {
diff --git a/inst/NEWS b/inst/NEWS
index 978954a..080da12 100644
--- a/inst/NEWS
+++ b/inst/NEWS
@@ -1,3 +1,8 @@
+Version 0.7 (unreleased)
+-----------------------------------------------------------------------
+
+- Push slide changes to browser history
+
 
 Version 0.6
 -----------------------------------------------------------------------
diff --git a/man/revealjs_presentation.Rd b/man/revealjs_presentation.Rd
index 1c40877..2120856 100644
--- a/man/revealjs_presentation.Rd
+++ b/man/revealjs_presentation.Rd
@@ -8,10 +8,10 @@
   slide_level = 2, fig_width = 8, fig_height = 6, fig_retina = if
   (!fig_caption) 2, fig_caption = FALSE, smart = TRUE,
   self_contained = TRUE, theme = "simple", transition = "default",
-  background_transition = "default", reveal_options = NULL,
-  highlight = "default", mathjax = "default", template = "default",
-  css = NULL, includes = NULL, keep_md = FALSE, lib_dir = NULL,
-  pandoc_args = NULL, ...)
+  background_transition = "default", history = TRUE,
+  reveal_options = NULL, highlight = "default", mathjax = "default",
+  template = "default", css = NULL, includes = NULL, keep_md = FALSE,
+  lib_dir = NULL, pandoc_args = NULL, ...)
 }
 \arguments{
 \item{incremental}{\code{TRUE} to render slide bullets incrementally. Note
@@ -59,6 +59,8 @@
 \item{background_transition}{Slide background-transition ("default", "none",
 "fade", "slide", "convex", "concave" or "zoom")}
 
+\item{history}{\code{TRUE} to push each slide change to the browser history.}
+
 \item{reveal_options}{Additional options to specify for reveal.js (see 
 \href{https://github.com/hakimel/reveal.js#configuration}{https://github.com/hakimel/reveal.js#configuration}
 for details).}