annotatedtext-rehype - v1.0.12
    Preparing search index...

    annotatedtext-rehype - v1.0.12

    annotatedtext-rehype

    Node.js CI

    A lightweight JavaScript library based on annotatedtext and rehype-parse for converting HTML documents into an annotated text format consumable by LanguageTool as AnnotatedText.

    For details, please see https://www.prosegrinder.com/annotatedtext-rehype.

    This package is ESM only. Node 12+ is needed to use it, and it must be imported instead of required.

    npm:

    npm install annotatedtext-rehype --save
    

    Use build to convert valid HTML into AnnotatedText.

    import { build } from "annotatedtext-rehype";

    const text = "<p>Some <b>bold</b> text.</p>";
    const annotatedtext = build(text);
    const ltdata = JSON.stringify(annotatedtext);