retext-latin
Parser for unified.
Parses Latin-script language to nlcst syntax trees.
Used in the retext processor but can be used on its own as
well.
Announcing the unified collective! 🎉
Read more about it on Medium »
Installation
npm:
npm install retext-latin
Usage
var unified = require('unified')
var stream = require('unified-stream')
var latin = require('retext-latin')
var stringify = require('retext-stringify')
var emoji = require('retext-emoji')
var processor = unified()
.use(latin)
.use(emoji, {convert: 'encode'})
.use(stringify)
process.stdin.pipe(stream(processor)).pipe(process.stdout)
Table of Contents
API
processor.use(latin)
Configure the processor
to read Latin-script text as input.
There is no configuration for the parser.
latin.Parser
Access to the parser (parse-latin
).
License
MIT © Titus Wormer