HTML Block

HTML Block (compact)

HTML Block (inline)

HTML Block (inline, no-deferred-rendering)

HTML Block (large font)

HTML Block (math)

HTML Block (math, no deferred rendering)

HTML Block (inline math)

HTML Block (LaTeX math)

HTML Block (LaTeX inline math)

HTML Block (code)

HTML Block (wrapped)

import { html, LitElement } from 'lit'; class SomeComponent extends LitElement { render() { return html` <d2l-html-block> ${unsafeHTML(this._someHTML)} </d2l-html-block> <button ...>update content</button>`; `; } } customElements.define('d2l-some-component', SomeComponent);