Skip to content
Merged
5 changes: 2 additions & 3 deletions src/utils/algolia.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const handleRawBody = node => {
!section.includes('CodeWithResult>') &&
!section.includes('CodeBlock') &&
!section.includes('tab>') &&
!section.includes('| **') &&
!section.includes('```') &&
!section.includes('block>') &&
!section.includes('ParallelBlocks>') &&
Expand Down Expand Up @@ -65,10 +64,10 @@ const handleRawBody = node => {
slug: rest.modSlug,
apiReference: fSection.heading.includes('inlinecode') ? removeInlineCode(fSection.heading): null,
heading: removeInlineCode(fSection.heading),
content: fSection.para.replace(/[\*\/\n/{\}\|\-\`\<\>\[\]]+/g, ' ').trim(),
content: fSection.para.replace(/[\*\/\n/{\}\|\-\`\/|:\<\>\[\]]+/g, ' ').trim(),
path: `${rest.modSlug.replace(/\d{2,}-/g, '')}${getTitlePath(fSection)}`,
}))

return records
}

Expand Down