| 20120 | }).join(""); |
| 20121 | const element = this.wrap("table", tableBody); |
| 20122 | return this.addRaw(element).addEOL(); |
| 20123 | } |
| 20124 | /** |
| 20125 | * Adds a collapsable HTML details element to the summary buffer |
| 20126 | * |
| 20127 | * @param {string} label text for the closed state |
| 20128 | * @param {string} content collapsable content |
| 20129 | * |
| 20130 | * @returns {Summary} summary instance |
| 20131 | */ |
| 20132 | addDetails(label, content) { |
| 20133 | const element = this.wrap("details", this.wrap("summary", label) + content); |
| 20134 | return this.addRaw(element).addEOL(); |
| 20135 | } |
| 20136 | /** |
| 20137 | * Adds an HTML image tag to the summary buffer |
| 20138 | * |
| 20139 | * @param {string} src path to the image you to embed |
| 20140 | * @param {string} alt text description of the image |