MCPcopy
hub / github.com/josdejong/mathjs / _toHTML

Method _toHTML

src/expression/node/AccessorNode.js:193–203  ·  view source on GitHub ↗

* Get HTML representation * @param {Object} options * @return {string}

(options)

Source from the content-addressed store, hash-verified

191 * @return {string}
192 */
193 _toHTML (options) {
194 let object = this.object.toHTML(options)
195 if (needParenthesis(this.object)) {
196 object =
197 '<span class="math-parenthesis math-round-parenthesis">(</span>' +
198 object +
199 '<span class="math-parenthesis math-round-parenthesis">)</span>'
200 }
201
202 return object + this.index.toHTML(options)
203 }
204
205 /**
206 * Get LaTeX representation

Callers

nothing calls this directly

Calls 2

needParenthesisFunction · 0.70
toHTMLMethod · 0.65

Tested by

no test coverage detected