Documentation
    Preparing search index...

    When provided this callback is invoked when a Section tag is encountered. The callback is passed the text contained within the section. If the section contains tags those tags will not have been replaced.

    Note that this is a callback function. The function provider is responsible for returning rendered text that will be written directly to the output.

    const callback = context as SectionTagCallback;
    const replacementText = callback(tag.content);
    this.writeToOutput(replacementText);
    • Parameters

      • tagContent: string

        The unrendered content of the section tag.

      Returns string

      A string of rendered text that will replace the content of the section tag.