MCPcopy
hub / github.com/teadocs/numpy-cn / getPcontent

Method getPcontent

scripts/htmlToMd.js:191–202  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

189 }
190
191 getPcontent(el) {
192 let tempContent = this.replaceSpec(this.$(el));
193 tempContent = this.replaceCode(this.$(el));
194 tempContent = this.replaceA(this.$(tempContent));
195 tempContent = this.replaceCite(this.$(tempContent));
196 tempContent = this.replaceStrong(this.$(tempContent));
197 tempContent = this.replaceSpan(this.$(tempContent));
198 tempContent = this.replaceEm(this.$(tempContent));
199 tempContent = this.$(tempContent).text();
200 let content = `\n${tempContent}\n`;
201 return content;
202 }
203
204 replaceCode($el) {
205 let that = this;

Callers 1

parseMethod · 0.95

Calls 7

replaceSpecMethod · 0.95
replaceCodeMethod · 0.95
replaceAMethod · 0.95
replaceCiteMethod · 0.95
replaceStrongMethod · 0.95
replaceSpanMethod · 0.95
replaceEmMethod · 0.95

Tested by

no test coverage detected