class CodeBlockComponent extends HTMLElement { connectedCallback() { const trimmed = this.innerHTML.trim() const lang = this.getAttribute('language') const inline = this.getAttribute('inline') !== null this.innerHTML = `
${trimmed}
`
/**
* @type {HTMLPreElement}
*/
const pre = this.querySelector('#pre')
if (lang) {
pre.className = `language-${lang}`
}
/**
* @type {Partial