reveal.js-run-in-browser
v2.0.0
Published
[![npm](https://img.shields.io/npm/dy/reveal.js-run-in-browser)](https://www.npmjs.com/package/reveal.js-run-in-browser)
Downloads
2
Maintainers
Readme
Run In Browser
A plugin for Reveal.js, that allows to execute js code right in browser
It works for structure like this:
<pre><code>
Here is the code
</code></pre>
then install the plugin and it will work automatically.
Installation
npm installation
This plugin is published to, and can be installed from, npm.
npm install reveal.js-run-in-browser
The plugin folder can then be referenced from node_modules/reveal.js-run-in-browser/dist/revealjs-run-in-browser
Setup
JavaScript
<script src="dist/reveal.js" />
<script src="node_modules/reveal.js-run-in-browser/dist/revealjs-run-in-browser" />
<script>
Reveal.initialize({
// ...
plugins: [RunInBrowser],
});
</script>