* Adds an HTML blockquote to the summary buffer * * @param {string} text quote text * @param {string} cite (optional) citation url * * @returns {Summary} summary instance
(text, cite)
| 19783 | */ |
| 19784 | addTable(rows) { |
| 19785 | const tableBody = rows.map((row) => { |
| 19786 | const cells = row.map((cell) => { |
| 19787 | if (typeof cell === "string") { |
| 19788 | return this.wrap("td", cell); |
| 19789 | } |
| 19790 | const { header, data, colspan, rowspan } = cell; |
| 19791 | const tag = header ? "th" : "td"; |
| 19792 | const attrs = Object.assign(Object.assign({}, colspan && { colspan }), rowspan && { rowspan }); |