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