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

Method replaceStrong

scripts/htmlToMd.js:271–283  ·  view source on GitHub ↗
($el)

Source from the content-addressed store, hash-verified

269 }
270
271 replaceStrong($el) {
272 let that = this;
273 let hContent = $el.prop("outerHTML");
274 let strongs = $el.find('strong');
275 if (strongs.length) {
276 strongs.each(function (index, el) {
277 let outHtml = that.$(el).prop("outerHTML");
278 let text = that.$(el).text();
279 hContent = hContent.replace(outHtml, `**${text}**`);
280 });
281 }
282 return hContent;
283 }
284
285 replaceCite($el) {
286 let that = this;

Callers 1

getPcontentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected