reveal.js-copycode

A simple plugin that automatically shows a 'copy' button in code blocks in Reveal.js

MIT License

Downloads
650
Stars
36
Committers
3
reveal.js-copycode - CopyCode 1.2.0 Latest Release

Published by Martinomagnifico 5 months ago

Added

  • Added a 'cssautoload' option that can be disabled if the user wants to use npm imports for the CSS file. This is useful for users who want to use a bundler like Webpack or Parcel.

Changed

  • Fix extra indentation with line numbers using hljs table (@hayesall in #14)
  • Change gulp header function
  • Change loading of styles (thanks to @jenwirth in #12)
reveal.js-copycode - CopyCode 1.1.8

Published by Martinomagnifico 8 months ago

Changed

  • Fix for fragment code blocks (@Toshizuki in #10)
reveal.js-copycode - CopyCode 1.1.7

Published by Martinomagnifico 10 months ago

  • Quarto fix
reveal.js-copycode - CopyCode 1.1.6

Published by Martinomagnifico 10 months ago

  • Target only pre's that directly have a code child
reveal.js-copycode - CopyCode 1.1.5

Published by Martinomagnifico 11 months ago

  • Fixed an error where code could not be copied if it was preceded by a space
  • Empty code blocks will now not get a copy button
reveal.js-copycode - CopyCode 1.1.4

Published by Martinomagnifico 12 months ago

  • Rewrote plugin so that the demo can be easily started from the command line
  • Removed JetBrains Mono font from demo
reveal.js-copycode - CopyCode 1.1.3

Published by Martinomagnifico 12 months ago

Changed

  • Fixed copy of empty lines in code blocks.
reveal.js-copycode - CopyCode 1.1.2

Published by Martinomagnifico over 1 year ago

  • Removed font-size rule for pre's.
reveal.js-copycode - CopyCode 1.1.1

Published by Martinomagnifico over 1 year ago

Changed

  • Fixed a bug where plaintext codeblocks indents got removed.
reveal.js-copycode - CopyCode 1.1.0

Published by Martinomagnifico over 1 year ago

Added

  • Added (SVG) icon option.
  • Added border option.
  • Added tooltip option.
  • Added MarkDown example.
  • Added Quarto compatibility.

Changed

  • Fixed a bug where YAML codeblocks would lose their indents.
  • Fixed a bug where Clipboard.js could load multiple times.
  • Reordered options into objects, while keeping backwards compatible.
reveal.js-copycode - CopyCode 1.0.4

Published by Martinomagnifico over 2 years ago

  • Added auto-loading of styles and script.
  • Changed the plugin to use CSS variables.
reveal.js-copycode - CopyCode 1.0.3

Published by Martinomagnifico almost 3 years ago

reveal.js-copycode - CopyCode 1.0.2

Published by Martinomagnifico over 3 years ago

This version fixes an issue where code is copied multiple times whenever code-fragment highlighting is used.

reveal.js-copycode - CopyCode 1.0.1

Published by Martinomagnifico almost 4 years ago

Compatibility with Reveal.js 4. The plugin can now be loaded via script tag and as a module.

reveal.js-copycode - CopyCode 1.0.0

Published by Martinomagnifico over 4 years ago

The 1.0.0 release is compatible with Reveal.js 3. The next release will only be compatible with Reveal.js 4.

Package Rankings
Top 15.73% on Npmjs.org
Badges
Extracted from project README
Version Downloads
Related Projects