We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb00905 commit d803139Copy full SHA for d803139
packages/crawler/src/common.ts
@@ -29,7 +29,9 @@ turndownService.addRule('in-this-chapter', {
29
filter: (node) => {
30
return (
31
node.nodeName === 'DIV' &&
32
- node.className.includes('in-this-chapter_wrapper')
+ // in-this-chapter-module__p7uO0q__wrapper
33
+ node.className.includes('in-this-chapter-module') &&
34
+ node.className.includes('__wrapper')
35
);
36
},
37
replacement: (content, node, options) => {
@@ -73,7 +75,7 @@ export function modifyCodeBlocks(main: Element) {
73
75
74
76
for (const codeBlock of codeBlocks) {
77
const fileNameNode = codeBlock.querySelector(
- '[class^="code-block_filename"',
78
+ '[class*="code-block-module"][class*="__filenameP"]',
79
80
const fileName = fileNameNode?.textContent || '';
81
0 commit comments