Sha256: 3503ba7eae700f9fce8bbaf41558e2f9580f2e7ca5a6370c63b80d924c39fced
Contents?: true
Size: 500 Bytes
Versions: 17
Compression:
Stored size: 500 Bytes
Contents
import { htmlAttributes } from "../html/html-attributes"; export class BlockQuote { attributes: Record<string, any>; children: any[]; constructor(attributes: Record<string, any> = {}) { this.children = []; this.attributes = attributes; } get render(): string { return `<blockquote ${htmlAttributes(this.attributes)}>${this.children.map(child => child.render).join("")}</blockquote>`; } add(child: any): BlockQuote { this.children.push(child); return this; } }
Version data entries
17 entries across 17 versions & 1 rubygems