MCPcopy Create free account
hub / github.com/anilkumarum/mark-clipper / addTextNode

Method addTextNode

panel/markdown/parser/parser.js:56–59  ·  view source on GitHub ↗

@param {string} data

(data)

Source from the content-addressed store, hash-verified

54
55 /** @param {string} data */
56 addTextNode(data) {
57 data = trimRight(data);
58 data.length === 0 || this.addChildElement(new Text(data));
59 }
60
61 setSelfCloseElem() {
62 this.openElem.children = undefined;

Callers

nothing calls this directly

Calls 2

addChildElementMethod · 0.95
trimRightFunction · 0.90

Tested by

no test coverage detected