---
url: /operations/canvas-whitelist.md
---

# Canvas HTML whitelist

The canvas supports GFM markdown plus a small allowlist of raw HTML tags that GFM cannot express (default: `<u>` for underline — users get a toolbar button, agents may write `<u>text</u>`):

```yaml
canvas_allowed_html_tags: ["u"] # default; [] disables raw HTML entirely
```

The list is exposed to the frontend via `/config`, embeds the allowed tags into the `canvas_write`/`canvas_edit` tool descriptions, and the frontend sanitizer escapes every other raw HTML tag to literal text. Tags may not carry attributes. Entries must be lowercase plain tag names — and must be part of the release's supported set (`SUPPORTED_CANVAS_HTML_TAGS` in `mucgpt-core-service/app/config/settings.py`, mirroring `CANVAS_SUPPORTED_HTML_TAGS` in `mucgpt-frontend/src/components/Canvas/canvasHtmlWhitelist.ts`): the config may only **restrict**, never extend — a tag the editor schema does not understand cannot be rendered, serialized, or exported, so referencing one fails core startup. Extending the whitelist requires a core+frontend release.
