The raw HTML content is validated and sanitized through the full
pipeline. On failure, a Wikidot-compatible error block is shown:
<div class="error-block">Sorry, no match for the embedded content.</div>.
The allowlist is taken from ctx.options.embedAllowlist, falling back
to DEFAULT_EMBED_ALLOWLIST when not specified. Setting it to
null enables Wikidot's "anyiframe" mode (any HTTPS iframe allowed).
Render an
[[embed]]...[[/embed]]block element.The raw HTML content is validated and sanitized through the full pipeline. On failure, a Wikidot-compatible error block is shown:
<div class="error-block">Sorry, no match for the embedded content.</div>.The allowlist is taken from
ctx.options.embedAllowlist, falling back to DEFAULT_EMBED_ALLOWLIST when not specified. Setting it tonullenables Wikidot's "anyiframe" mode (any HTTPS iframe allowed).