MCPcopy Index your code
hub / github.com/ether/etherpad / getHtml

Method getHtml

src/node/utils/padDiff.ts:184–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 return atext;
183 }
184 async getHtml(){
185 // cache the html
186 if (this._html != null) {
187 return this._html;
188 }
189
190 // get the diff atext
191 const atext = await this._createDiffAtext();
192
193 // get the authorColor table
194 const authorColors = await this._pad.getAllAuthorColors();
195
196 // convert the atext to html
197 this._html = await exportHtml.getHTMLFromAtext(this._pad, atext, authorColors);
198
199 return this._html;
200 }
201
202 async getAuthors() {
203 // check if html was already produced, if not produce it, this generates

Callers 2

getAuthorsMethod · 0.95
API.tsFile · 0.80

Calls 2

_createDiffAtextMethod · 0.95
getAllAuthorColorsMethod · 0.80

Tested by

no test coverage detected