Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`<canvas>` tag rendered instead of escaped in `p5.Graphics` reference page

未关闭 适合新手
#1,389 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@rakesh2OO5 已经在做这个了。

开始于 2026年6月16日。

  • #1557 来自 @waterWang —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
documentation

调研方向

从 p5.Graphics 参考页面开始,检查 p5.Graphics.remove() 条目,其中 标签会显示在参考文本中。检查附近的参考页面是否存在相同的行为,然后验证示例是否以转义文本的形式出现,并且没有插入真正的 canvas 元素。

由索引模型根据 Issue 内容生成。

描述

Bug
Most appropriate sections of the p5.js website?

Reference

What is your operating system?

Mac OS

Web browser and version

147.0.7727.138 (Official Build) (arm64)

Actual Behavior

The <canvas> tag in the p5.Graphics.remove() reference text is being rendered as a real canvas element on the page.

Image
Expected Behavior

The reference page should show the code example as text only. The <canvas> element should be escaped, not inserted into the page as an actual canvas.

Steps to reproduce

Visit https://p5js.org/reference/p5/p5.Graphics/ and scroll down to Methods>remove.

Notes

Whoever works on this issue should audit the website for other reference pages suffering from the same issue.

Would you like to work on the issue?

No, I'm just reporting the issue

主要语言
MDX
星标
97
派生
330
平均合并
4 天 18 小时
30 天内合并 PR
11

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

processing/p5.js-website 的其他 Issue

查看 processing/p5.js-website 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。