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

Method replaceCite

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

Source from the content-addressed store, hash-verified

283 }
284
285 replaceCite($el) {
286 let that = this;
287 let hContent = $el.prop("outerHTML");
288 let cites = $el.find('cite');
289 if (cites.length) {
290 cites.each(function (index, el) {
291 let outHtml = that.$(el).prop("outerHTML");
292 let text = that.$(el).text();
293 hContent = hContent.replace(outHtml, `*${text}*`);
294 });
295 }
296 return hContent;
297 }
298
299 replaceEm($el) {
300 let that = this;

Callers 1

getPcontentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected