Fixed #313. Update the reveal.js CDN link.

This commit is contained in:
Yujie Wen 2019-07-12 00:21:36 +08:00
parent 02bcbcdef3
commit 62922a9755
1 changed files with 14 additions and 3 deletions

View File

@ -115,7 +115,7 @@
a CDN instead of downloading a local copy.
#+BEGIN_SRC org
,#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js@3.7.0
,#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
#+END_SRC
@ -499,9 +499,20 @@
For an example, please refer to the heading part of this document.
** Third-Party Plugins
Reveal.js is also extensible through third-party plugins. Org-reveal now includes a mechanism to load these as well. It's a little more complicated, because we need to store the specific javascript loading code in a defcustom.
Reveal.js is also extensible through third-party plugins. Org-reveal
now includes a mechanism to load these as well. It's a little more
complicated, because we need to store the specific javascript loading
code in a defcustom.
Store the names and loading instructions for each plugin in the defcustom ~org-reveal-external-plugins~. This defcustom is an associative list. The first element of each Assoc cell is a symbol -- the name of the plugin -- and the second is a string that will be expanded by the ~format~ function when the plugin is loaded. So, this second element should have the form ~" {src: \"%srelative/path/toplugin/from/reveal/root.js\"}'. If you need the async or callback parameters, include those too. Ox-reveal will add the plugin to the dependencies parameter when Reveal is initialized.
Store the names and loading instructions for each plugin in the
defcustom ~org-reveal-external-plugins~. This defcustom is an
associative list. The first element of each Assoc cell is a symbol --
the name of the plugin -- and the second is a string that will be
expanded by the ~format~ function when the plugin is loaded. So, this
second element should have the form ~" {src:
\"%srelative/path/toplugin/from/reveal/root.js\"}'. If you need the
async or callback parameters, include those too. Ox-reveal will add
the plugin to the dependencies parameter when Reveal is initialized.
** Highlight Source Code