Skip to content

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

License

Notifications You must be signed in to change notification settings

prosegrinder/annotatedtext-remark

Repository files navigation

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);

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •