Wrapped a comment

This commit is contained in:
Piotr Janosz
2019-08-16 15:09:16 +02:00
committed by fabioberger
parent bf22eba795
commit 40edcef340

View File

@@ -99,7 +99,9 @@ function processContentTree(tree: Node[], file: File, indexName: string): void {
const textNodes = selectAll('text', tree);
if (textNodes) {
// Combines text nodes that exist on the same line. I.e. if a paragraph contains 7 text nodes it combines them into 1. This makes text snippets in algolia more descriptive.
// Combines text nodes that exist on the same line. I.e. if a paragraph
// contains 7 text nodes it combines them into 1. This makes text snippets
// in algolia more descriptive.
const formattedTextNodes = formatTextNodes(textNodes);
// Adds meta and formats information on all formatted text nodes
const content = getContent(file, formattedTextNodes);