1.0.12 • Published 1 month ago
annotatedtext-rehype v1.0.12
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.
Documentation
For details, please see https://www.prosegrinder.com/annotatedtext-rehype.
Install
This package is
ESM only.
Node 12+ is needed to use it, and it must be import
ed instead of require
d.
npm:
npm install annotatedtext-rehype --save
Usage
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);
1.0.12
1 month ago
1.0.11
2 months ago
1.0.10
2 months ago
1.0.9
7 months ago
1.0.8
7 months ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.6.0
3 years ago
0.5.0
4 years ago
0.3.0
4 years ago
0.4.0
4 years ago
0.2.0
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
5 years ago
0.1.0
5 years ago