We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d59ed9 commit 3d8f987Copy full SHA for 3d8f987
1 file changed
migrate/migrate-bot.ts
@@ -73,7 +73,7 @@ async function fetchPageContent(
73
const selectorsToRemove = [
74
".t-navbar",
75
".t-example-live-link",
76
- "editsection",
+ ".editsection",
77
"#toc",
78
];
79
for (const selector of selectorsToRemove) {
@@ -305,6 +305,12 @@ async function createPullRequest(
305
.then((data) => {
306
const dom = new JSDOM(data);
307
const contentElement = dom.window.document.querySelector("main");
308
+ const selectorsToRemove = ['.sl-anchor-link']
309
+ for (const selector of selectorsToRemove) {
310
+ const elements = contentElement?.querySelectorAll(selector);
311
+ elements?.forEach((el) => el.remove());
312
+ }
313
+
314
return contentElement?.textContent?.trim() || "";
315
})
316
.catch(() => "");
0 commit comments