Sha256: e128fd4d5e258256acc0efb27f62841b4d687decdbccd2ef8feae34876f6e342
Contents?: true
Size: 514 Bytes
Versions: 7
Compression:
Stored size: 514 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 renderWrapper(): string { return `<blockquote ${htmlAttributes(this.attributes)}>${this.children.map(child => child.renderWrapper).join("")}</blockquote>`; } add(child: any): BlockQuote { this.children.push(child); return this; } }
Version data entries
7 entries across 7 versions & 1 rubygems