bundle IDS citation style as ids.csl and make it the default

Include the IDS citation style (based on the style developed for
ICLC-10 2023 in Mannheim) as resources/ids.csl and pass it to pandoc
unless the document specifies a csl of its own. Drop the now-redundant
remote csl URL from examples/ids.Rmd.

Change-Id: Iaaff300bfb9d9b7ea80471b73de3bf6019fb9f93
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index c35cdeb..950b8b8 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -119,6 +119,13 @@
 #'     toggleNotesButton: true
 #'     toggleChalkboardButton: true
 #' ```
+#' ## Bibliography and citations
+#' 
+#' Documents with a `bibliography:` in their YAML header are formatted with
+#' the bundled IDS citation style (`ids.csl`, based on the style developed
+#' for ICLC-10 2023 in Mannheim) by default. To use a different style,
+#' specify it as usual with `csl:` in the YAML header.
+#' 
 #' @inheritParams rmarkdown::beamer_presentation
 #' @inheritParams rmarkdown::pdf_document
 #' @inheritParams rmarkdown::html_document
@@ -380,6 +387,12 @@
     # highlight
     args <- c(args, pandoc_highlight_args(highlight, default = "pygments"))
 
+    # default to the bundled IDS citation style unless the document
+    # specifies a style of its own
+    if (is.null(metadata$csl)) {
+      args <- c(args, "--csl", pandoc_path_arg(reveal_resources("ids.csl")))
+    }
+
     # return additional args
     args
   }