Skip to content

Commit a2ca6ad

Browse files
committed
Remove HTML tags from reference examples in two modules
1 parent 6320af2 commit a2ca6ad

5 files changed

Lines changed: 70 additions & 615 deletions

File tree

src/accessibility/describe.js

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ function describe(p5, fn){
3636
* @param {(FALLBACK|LABEL)} [display] either LABEL or FALLBACK.
3737
*
3838
* @example
39-
* <div>
40-
* <code>
4139
* function setup() {
4240
* background('pink');
4341
*
@@ -51,11 +49,8 @@ function describe(p5, fn){
5149
* // Add a general description of the canvas.
5250
* describe('A pink square with a red heart in the bottom-right corner.');
5351
* }
54-
* </code>
55-
* </div>
5652
*
57-
* <div>
58-
* <code>
53+
* @example
5954
* function setup() {
6055
* background('pink');
6156
*
@@ -70,12 +65,8 @@ function describe(p5, fn){
7065
* // and display it for debugging.
7166
* describe('A pink square with a red heart in the bottom-right corner.', LABEL);
7267
* }
73-
* </code>
74-
* </div>
75-
*
76-
* <div>
77-
* <code>
7868
*
69+
* @example
7970
* function setup(){
8071
* createCanvas(100, 100);
8172
* };
@@ -96,12 +87,8 @@ function describe(p5, fn){
9687
* // Add a general description of the canvas.
9788
* describe(`A green circle at (${x}, 50) moves from left to right on a gray square.`);
9889
* }
99-
* </code>
100-
* </div>
101-
*
102-
* <div>
103-
* <code>
10490
*
91+
* @example
10592
* function setup(){
10693
* createCanvas(100, 100);
10794
* }
@@ -123,8 +110,6 @@ function describe(p5, fn){
123110
* // and display it for debugging.
124111
* describe(`A green circle at (${x}, 50) moves from left to right on a gray square.`, LABEL);
125112
* }
126-
* </code>
127-
* </div>
128113
*/
129114
fn.describe = function(text, display) {
130115
// p5._validateParameters('describe', arguments);
@@ -197,8 +182,6 @@ function describe(p5, fn){
197182
* @param {(FALLBACK|LABEL)} [display] either LABEL or FALLBACK.
198183
*
199184
* @example
200-
* <div>
201-
* <code>
202185
* function setup() {
203186
* background('pink');
204187
*
@@ -220,11 +203,8 @@ function describe(p5, fn){
220203
* // Add a general description of the canvas.
221204
* describe('A red heart and yellow circle over a pink background.');
222205
* }
223-
* </code>
224-
* </div>
225206
*
226-
* <div>
227-
* <code>
207+
* @example
228208
* function setup() {
229209
* background('pink');
230210
*
@@ -248,8 +228,6 @@ function describe(p5, fn){
248228
* // Add a general description of the canvas.
249229
* describe('A red heart and yellow circle over a pink background.');
250230
* }
251-
* </code>
252-
* </div>
253231
*/
254232

255233
fn.describeElement = function(name, text, display) {

src/accessibility/outputs.js

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ function outputs(p5, fn){
4040
* @param {(FALLBACK|LABEL)} [display] either FALLBACK or LABEL.
4141
*
4242
* @example
43-
* <div>
44-
* <code>
4543
* function setup() {
4644
* // Add the text description.
4745
* textOutput();
@@ -56,11 +54,8 @@ function outputs(p5, fn){
5654
* // Add a general description of the canvas.
5755
* describe('A red circle and a blue square on a gray background.');
5856
* }
59-
* </code>
60-
* </div>
6157
*
62-
* <div>
63-
* <code>
58+
* @example
6459
* function setup() {
6560
* // Add the text description and
6661
* // display it for debugging.
@@ -76,12 +71,8 @@ function outputs(p5, fn){
7671
* // Add a general description of the canvas.
7772
* describe('A red circle and a blue square on a gray background.');
7873
* }
79-
* </code>
80-
* </div>
81-
*
82-
* <div>
83-
* <code>
8474
*
75+
* @example
8576
* function setup(){
8677
* createCanvas(100, 100);
8778
* }
@@ -101,12 +92,8 @@ function outputs(p5, fn){
10192
* // Add a general description of the canvas.
10293
* describe('A red circle moves from left to right above a blue square.');
10394
* }
104-
* </code>
105-
* </div>
106-
*
107-
* <div>
108-
* <code>
10995
*
96+
* @example
11097
* function setup(){
11198
* createCanvas(100, 100);
11299
* }
@@ -127,8 +114,6 @@ function outputs(p5, fn){
127114
* // Add a general description of the canvas.
128115
* describe('A red circle moves from left to right above a blue square.');
129116
* }
130-
* </code>
131-
* </div>
132117
*/
133118
fn.textOutput = function(display) {
134119
// p5._validateParameters('textOutput', arguments);
@@ -184,8 +169,6 @@ function outputs(p5, fn){
184169
* @param {(FALLBACK|LABEL)} [display] either FALLBACK or LABEL.
185170
*
186171
* @example
187-
* <div>
188-
* <code>
189172
* function setup() {
190173
* // Add the grid description.
191174
* gridOutput();
@@ -200,11 +183,8 @@ function outputs(p5, fn){
200183
* // Add a general description of the canvas.
201184
* describe('A red circle and a blue square on a gray background.');
202185
* }
203-
* </code>
204-
* </div>
205186
*
206-
* <div>
207-
* <code>
187+
* @example
208188
* function setup() {
209189
* // Add the grid description and
210190
* // display it for debugging.
@@ -220,12 +200,8 @@ function outputs(p5, fn){
220200
* // Add a general description of the canvas.
221201
* describe('A red circle and a blue square on a gray background.');
222202
* }
223-
* </code>
224-
* </div>
225-
*
226-
* <div>
227-
* <code>
228203
*
204+
* @example
229205
* function setup() {
230206
* createCanvas(100, 100);
231207
* }
@@ -245,12 +221,8 @@ function outputs(p5, fn){
245221
* // Add a general description of the canvas.
246222
* describe('A red circle moves from left to right above a blue square.');
247223
* }
248-
* </code>
249-
* </div>
250-
*
251-
* <div>
252-
* <code>
253224
*
225+
* @example
254226
* function setup(){
255227
* createCanvas(100, 100);
256228
* }
@@ -271,11 +243,7 @@ function outputs(p5, fn){
271243
* // Add a general description of the canvas.
272244
* describe('A red circle moves from left to right above a blue square.');
273245
* }
274-
* </code>
275-
* </div>
276246
*/
277-
278-
279247
fn.gridOutput = function(display) {
280248
// p5._validateParameters('gridOutput', arguments);
281249
//if gridOutput is already true

0 commit comments

Comments
 (0)