- Removed min-height to fix #20
- Added a new 'window' option to show the codeblock in a window-like frame.
- Uses newer version of pluginToolkit that fixes CSS loading in fixed/prod/static modes
- Newer version of Vite used
- Fixed an error that occurred in embedded mode where the plugin did not correctly scope the copy buttons to the active deck.
- Add an embedded demo
- The plugin will now check if it is running in a module environment and will then not autoload the CSS. You can still set
cssautoloadtotrueif you like, but your bundler (Vite, Webpack) may not like that. In any of these cases,importthe CSS file yourself.
- This new version is built with Vite
- Removes dependency on Clipboard.js and uses the native Clipboard API instead
- 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.
- 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)
- Fix for fragment code blocks (@Toshizuki in #10)
- Quarto fix
- Target only pre's that directly have a code child
- 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
- Rewrote plugin so that the demo can be easily started from the command line
- Removed JetBrains Mono font from demo
- Fixed copy of empty lines in code blocks.
- Removed font-size rule for pre's.
- Fixed a bug where plaintext codeblocks indents got removed.
- Added (SVG) icon option.
- Added border option.
- Added offset option.
- Added scale option.
- Added tooltip option.
- Added MarkDown example.
- Added Quarto compatibility.
- 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.
- Started keeping the changelog.
- Added auto-loading of styles and script.
- Changed the plugin to use CSS variables.
- Fixed visible button in fragment, thanks @danbst for spotting this.
- Fixed extra indentation where copied code was rich text. The copied code now defaults to plaintext. Thanks @danbst for finding the issue.
- This version fixes an issue where code is copied multiple times whenever code-fragment highlighting is used.
- Compatibility with Reveal.js 4. The plugin can now be loaded via script tag and as a module.
- First commit