(tool, check)
| 19981 | } |
| 19982 | /** |
| 19983 | * Adds an HTML line break (<br>) to the summary buffer |
| 19984 | * |
| 19985 | * @returns {Summary} summary instance |
| 19986 | */ |
| 19987 | addBreak() { |
| 19988 | const element = this.wrap("br", null); |
| 19989 | return this.addRaw(element).addEOL(); |
| 19990 | } |
| 19991 | /** |
| 19992 | * Adds an HTML blockquote to the summary buffer |
| 19993 | * |
| 19994 | * @param {string} text quote text |
| 19995 | * @param {string} cite (optional) citation url |
| 19996 | * |
| 19997 | * @returns {Summary} summary instance |
| 19998 | */ |
| 19999 | addQuote(text, cite) { |
| 20000 | const attrs = Object.assign({}, cite && { cite }); |
| 20001 | const element = this.wrap("blockquote", text, attrs); |
| 20002 | return this.addRaw(element).addEOL(); |
| 20003 | } |
| 20004 | /** |
| 20005 | * Adds an HTML anchor tag to the summary buffer |
| 20006 | * |
| 20007 | * @param {string} text link text/content |
| 20008 | * @param {string} href hyperlink |
no test coverage detected