Skip to content

add p5js shortcode - #4

Merged
hexadecimalDinosaur merged 2 commits into
mcpt:masterfrom
nyiyui:master
Nov 5, 2021
Merged

add p5js shortcode#4
hexadecimalDinosaur merged 2 commits into
mcpt:masterfrom
nyiyui:master

Conversation

@nyiyui

@nyiyui nyiyui commented Nov 5, 2021

Copy link
Copy Markdown
Contributor

This shortcode can be used to inject p5js code. The JS passed to the shortcode should be trusted.

Note: this hardcodes the p5js embedding library in the theme (no other bodge I could think of) into the theme's <head/>.

Embed p5.js code in Markdown:

{{< p5js >}}
createCanvas(720, 400);
{{< /p5js >}}

@nyiyui nyiyui self-assigned this Nov 5, 2021
@hexadecimalDinosaur
hexadecimalDinosaur merged commit 27a6280 into mcpt:master Nov 5, 2021
@nyiyui nyiyui mentioned this pull request Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants