reveal.js-run-in-browser

2.0.0 • Public • Published

Run In Browser

npm


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> 

Package Sidebar

Install

npm i reveal.js-run-in-browser

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

64.6 kB

Total Files

5

Last publish

Collaborators

  • ntnbrtnkv