annotatedtext-remark

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

MIT 22 个版本
安装
npm install annotatedtext-remark
yarn add annotatedtext-remark
pnpm add annotatedtext-remark
bun add annotatedtext-remark
README

annotatedtext-remark

Node.js CI

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

Front matter is now tagged as markup.

Documentation

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

Install

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

npm:

npm install annotatedtext-remark

Usage

Use build to convert valid Markdown into AnnotatedText.

import { build } from "annotatedtext-remark";

const text = "# Hello World\n\nThis is a paragraph.";
const annotatedtext = build(text);
const ltdata = JSON.stringify(annotatedtext);
版本列表
1.0.11 2026-03-26
1.0.10 2024-04-04
1.0.9 2024-03-02
1.0.8 2023-10-22
1.0.7 2022-12-12
1.0.6 2022-12-12
1.0.5 2022-11-21
1.0.4 2022-11-13
1.0.3 2022-04-28
1.0.2 2021-11-20
1.0.1 2021-08-08
1.0.0 2021-08-07
0.8.0 2021-02-09
0.7.0 2020-10-16
0.6.0 2020-05-17
0.5.0 2020-05-09
0.4.1 2020-04-18
0.4.0 2019-11-16
0.3.0 2019-11-15
0.2.0 2019-10-20
0.1.1 2019-10-17
0.1.0 2018-12-30