Bot:Gadget-figureSource.js: Difference between revisions
Content deleted Content added
Prose heading: walk to the FOLLOWING h6 (marker is a sibling line, not inside it); idempotent tagging |
Prose address: section h2 + chunk title (title lives in the marker paragraph) |
||
Line 304:
if (label && label !== el) { parts.push(cellText(label)); }
} else {
//
//
//
//
//
var anchor = document.querySelector(
'span.ed-chunk[id$="-c' + entry.loc.chunk + '"]');
var blk = anchor &&
}
if (
if (title) { parts.push(title); }▼
break;▼
}
var clone = blk.cloneNode(true);
clone.querySelectorAll('.ed-chunk').forEach(function (s) {
});
var title = clone.textContent.replace(/\s+/g, ' ').trim();
}
}
| |||