* Get HTML representation * @param {Object} options * @return {string} str
(options)
| 424 | * @return {string} str |
| 425 | */ |
| 426 | _toHTML (options) { |
| 427 | const args = this.args.map(function (arg) { |
| 428 | return arg.toHTML(options) |
| 429 | }) |
| 430 | |
| 431 | // format the arguments like "add(2, 4.2)" |
| 432 | return '<span class="math-function">' + escape(this.fn) + |
| 433 | '</span><span class="math-paranthesis math-round-parenthesis">(</span>' + |
| 434 | args.join('<span class="math-separator">,</span>') + |
| 435 | '<span class="math-paranthesis math-round-parenthesis">)</span>' |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Get LaTeX representation. (wrapper function) |