A lightweight JavaScript library based on annotatedtext and remark-hype for converting html documents into an annotated text format consumable by LanguageTool as AnnotatedText.
npm install annotatedtext-rehype
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:
``bash`
npm install annotatedtext-rehype --save
Use build to convert valid HTML into
AnnotatedText.
`javascript
import { build } from "annotatedtext-rehype";
const text = "
Some bold text.
";