Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/cass-e-design/p5js-wp-legacy/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
p5.js WP
Local hosting & embedding of p5.js scripts directly in posts & pages using iframes & shortcode
Description
p5.js scripts can be tricky to embed safely alongside other content, especially when using plugins that aggregate or defer scripts. This plugin enables inclusion of p5.js scripts more easily, directly inside WordPress content using a shortcode. It encapsulates scripts inside an \, so one post or page can safely handle multiple p5.js sketches using conflicting libraries, versions, etc.
Usage
This plugin adds a shortcode, not a Gutenberg Block. For a detailed explanation of shortcodes, please see the Wordpress Codex Page on Shortcodes. For the usage of this shortcode, please see the usage examples below.
Additional Note: I use to indicate where a URL needs to go. You should replace the whole thing, including the < brackets.
Special Characters
All HTML Entities inside the shortcode need to be encoded. Like '&' (&).