import { build } from "annotatedtext-rehype";const text = "<p>Some <b>bold</b> text.</p>";const annotatedtext = build(text);const ltdata = JSON.stringify(annotatedtext); Copy
import { build } from "annotatedtext-rehype";const text = "<p>Some <b>bold</b> text.</p>";const annotatedtext = build(text);const ltdata = JSON.stringify(annotatedtext);
This module provides a function to build an annotated text from a HTML string using the rehype parser.
Example
Description
This module provides a function to build an annotated text from a HTML string using the rehype parser.