'Embed a p5.js sketch on a Docusaurus docs markdown page

We are using Docusaurus as a documentation portal. We would like to help illustrate some concepts with Processing (p5.js).

How can we embed a p5 sketch in a Docusaurus docs page?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source