Perseus
    Preparing search index...
    Index

    Constructors

    Properties

    previousContent: string | null | undefined = null
    runLinter: any = ...

    Runs the poentry linter on the given perseus string asynchronously.

    It doesn't do anything unless we're in a KA environment.

    onLintErrorsGenerated is called even if there are no errors. It is not called if perseusStr is unchanged from the last call.

    Linting is relatively expensive -- so we debounce linting each instance for some amount of time.

    Methods

    • Applies an array of errors generated by linters without position information (TranslationLinter and the legacy getSaveWarnings()) to the top of a Perseus tree.

      Parameters

      • parsedMarkdown: any
      • translationLintErrors: readonly string[]

      Returns void